Merge pull request #15064 from bevanjkay/allow-arch-in-flight

cask/dsl: pass #{arch} to flight blocks
This commit is contained in:
Mike McQuaid 2023-03-27 14:54:05 +01:00 committed by GitHub
commit 47c7f006c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -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)