Skip to content
Snippets Groups Projects
Commit 486fa0bf authored by Markus Reiter's avatar Markus Reiter
Browse files

Fix `uninstall` also running `zap`.

parent f810bf6b
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,9 @@ require "hbc/artifact/uninstall_base"
module Hbc
module Artifact
class Uninstall < UninstallBase
def uninstall_phase
dispatch_uninstall_directives
end
end
end
end
......@@ -54,10 +54,6 @@ module Hbc
path_strings - undeletable
end
def uninstall_phase
dispatch_uninstall_directives
end
def dispatch_uninstall_directives(expand_tilde: true)
directives_set = @cask.artifacts[stanza]
ohai "Running #{stanza} process for #{@cask}; your password may be necessary"
......
......@@ -3,7 +3,7 @@ require "hbc/artifact/uninstall_base"
module Hbc
module Artifact
class Zap < UninstallBase
def uninstall_phase
def zap_phase
dispatch_uninstall_directives(expand_tilde: true)
end
end
......
......@@ -331,7 +331,7 @@ module Hbc
uninstall_artifacts
if Artifact::Zap.me?(@cask)
ohai "Dispatching zap stanza"
Artifact::Zap.new(@cask, command: @command).uninstall_phase
Artifact::Zap.new(@cask, command: @command).zap_phase
else
opoo "No zap stanza present for Cask '#{@cask}'"
end
......
......@@ -14,10 +14,10 @@ describe Hbc::Artifact::Zap do
end
end
describe "uninstall_phase" do
describe "#zap_phase" do
subject {
shutup do
zap_artifact.uninstall_phase
zap_artifact.zap_phase
end
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment