brew/Library/Homebrew/compat/cask/cask_loader.rb
Mike McQuaid 90b3a13909
cask: move cask/lib/hbc/* to cask/*.
Fix the load path, requires and some filenames accordingly.
2018-09-04 09:56:57 +01:00

23 lines
500 B
Ruby

module Hbc
module CaskLoader
class FromContentLoader; end
class FromPathLoader < FromContentLoader
module Compat
private
def cask(header_token, **options, &block)
if header_token.is_a?(Hash) && header_token.key?(:v1)
odisabled %q("cask :v1 => 'token'"), %q("cask 'token'")
header_token = header_token[:v1]
end
super(header_token, **options, &block)
end
end
prepend Compat
end
end
end