From 68584ac7a7ef4d163760047f1c438bfad1bc3174 Mon Sep 17 00:00:00 2001 From: Bevan Kay Date: Mon, 27 Mar 2023 11:28:59 +1100 Subject: [PATCH] dsl: pass #{arch} to flight blocks --- Library/Homebrew/cask/dsl.rb | 1 + Library/Homebrew/cask/dsl/base.rb | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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)