aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/source/untapped_qualified.rb
blob: 6041605d8c4b1ccf0c76fbda4f050710ce8e97d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require "hbc/source/tapped_qualified"

module Hbc
  module Source
    class UntappedQualified < TappedQualified
      def self.me?(query)
        return if (tap = tap_for_query(query)).nil?

        tap.install
        tap.installed? && path_for_query(query).exist?
      end
    end
  end
end