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([
|
||||
:appcast,
|
||||
:arch,
|
||||
:artifacts,
|
||||
:auto_updates,
|
||||
:caveats,
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user