dsl: pass #{arch} to flight blocks
This commit is contained in:
parent
140d444462
commit
68584ac7a7
@ -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,
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user