2019-04-19 15:38:03 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-09-03 19:39:07 +01:00
|
|
|
require "cask/artifact/abstract_uninstall"
|
2016-08-18 22:11:42 +03:00
|
|
|
|
2018-09-06 08:29:14 +02:00
|
|
|
module Cask
|
2016-09-24 13:52:43 +02:00
|
|
|
module Artifact
|
2017-04-06 00:33:31 +02:00
|
|
|
class Uninstall < AbstractUninstall
|
|
|
|
def uninstall_phase(**options)
|
2019-02-06 19:04:29 +01:00
|
|
|
ORDERED_DIRECTIVES.reject { |directive_sym| directive_sym == :rmdir }
|
|
|
|
.each do |directive_sym|
|
|
|
|
dispatch_uninstall_directive(directive_sym, **options)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def post_uninstall_phase(**options)
|
|
|
|
dispatch_uninstall_directive(:rmdir, **options)
|
2017-02-10 07:49:21 +01:00
|
|
|
end
|
2016-09-24 13:52:43 +02:00
|
|
|
end
|
|
|
|
end
|
2016-08-18 22:11:42 +03:00
|
|
|
end
|