From 24ee6c63f4fb7cc2b689a4f5e648820b14f402be Mon Sep 17 00:00:00 2001 From: Claudia Date: Wed, 1 Jun 2016 22:27:59 +0200 Subject: [PATCH] Fix `zap` regression introduced in 6500fa1; ref #21583 (#21607) This PR fixes an issue with 6500fa1, in which the (internal) installer API was refactored in preparation for the big change. That refactoring missed one case, causing `zap` to break; see #21583. There are **no tests** included with this fix due to pre-existing coverage issues. Test will follow in a separate commit. --- lib/hbc/installer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hbc/installer.rb b/lib/hbc/installer.rb index 7a46a57a3a83..36d58adf51b7 100644 --- a/lib/hbc/installer.rb +++ b/lib/hbc/installer.rb @@ -304,7 +304,7 @@ def zap uninstall_artifacts if Hbc::Artifact::Zap.me?(@cask) ohai "Dispatching zap stanza" - Hbc::Artifact::Zap.new(@cask, @command).zap_phase + Hbc::Artifact::Zap.new(@cask, command: @command).zap_phase else opoo "No zap stanza present for Cask '#{@cask}'" end