diff --git a/Library/Homebrew/cask/dsl.rb b/Library/Homebrew/cask/dsl.rb index ab5a87f6b3..8ed9138560 100644 --- a/Library/Homebrew/cask/dsl.rb +++ b/Library/Homebrew/cask/dsl.rb @@ -68,6 +68,7 @@ module Cask DSL_METHODS = Set.new([ :appcast, + :arch, :artifacts, :auto_updates, :caveats, diff --git a/Library/Homebrew/cask/dsl/base.rb b/Library/Homebrew/cask/dsl/base.rb index eb24dfc324..9a529b6d67 100644 --- a/Library/Homebrew/cask/dsl/base.rb +++ b/Library/Homebrew/cask/dsl/base.rb @@ -2,6 +2,7 @@ # frozen_string_literal: true require "cask/utils" +require "extend/on_system" module Cask class DSL @@ -16,7 +17,7 @@ module Cask @command = command end - def_delegators :@cask, :token, :version, :caskroom_path, :staged_path, :appdir, :language + def_delegators :@cask, :token, :version, :caskroom_path, :staged_path, :appdir, :language, :arch def system_command(executable, **options) @command.run!(executable, **options)