diff options
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cask.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cask.rb | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cask.rb b/Library/Homebrew/cask/lib/hbc/cask.rb index df885371a..681130c1b 100644 --- a/Library/Homebrew/cask/lib/hbc/cask.rb +++ b/Library/Homebrew/cask/lib/hbc/cask.rb @@ -6,17 +6,18 @@ module Hbc      extend Forwardable      include Metadata -    attr_reader :token, :sourcefile_path +    attr_reader :token, :sourcefile_path, :config      def tap        return super if block_given? # Object#tap        @tap      end -    def initialize(token, sourcefile_path: nil, tap: nil, &block) +    def initialize(token, sourcefile_path: nil, tap: nil, config: Config.global, &block)        @token = token        @sourcefile_path = sourcefile_path        @tap = tap +      @config = config        @dsl = DSL.new(self)        return unless block_given?        @dsl.instance_eval(&block)  | 
