aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/container/pkg.rb
blob: dfd62a8633fa172796b17834f3a50979f041f2b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require "hbc/container/naked"

module Hbc
  class Container
    class Pkg < Naked
      def self.me?(criteria)
        criteria.extension(%r{m?pkg$}) &&
          (criteria.path.directory? ||
           criteria.magic_number(%r{^xar!}n))
      end
    end
  end
end