dsl: pass #{arch} to flight blocks

This commit is contained in:
Bevan Kay 2023-03-27 11:28:59 +11:00
parent 140d444462
commit 68584ac7a7
No known key found for this signature in database
GPG Key ID: C55CB024B5314B57
2 changed files with 3 additions and 1 deletions

View File

@ -68,6 +68,7 @@ module Cask
DSL_METHODS = Set.new([ DSL_METHODS = Set.new([
:appcast, :appcast,
:arch,
:artifacts, :artifacts,
:auto_updates, :auto_updates,
:caveats, :caveats,

View File

@ -2,6 +2,7 @@
# frozen_string_literal: true # frozen_string_literal: true
require "cask/utils" require "cask/utils"
require "extend/on_system"
module Cask module Cask
class DSL class DSL
@ -16,7 +17,7 @@ module Cask
@command = command @command = command
end 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) def system_command(executable, **options)
@command.run!(executable, **options) @command.run!(executable, **options)