aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/container/pkg.rb
blob: b5f5daad843650ad05ad29c8d53b03c9322fd100 (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(/m?pkg$/) &&
          (criteria.path.directory? ||
           criteria.magic_number(/^xar!/n))
      end
    end
  end
end