Class: Cask::Artifact::Uninstall

Inherits:
AbstractUninstall show all
Defined in:
brew/Library/Homebrew/cask/artifact/uninstall.rb

Constant Summary

Constants inherited from AbstractUninstall

AbstractUninstall::ORDERED_DIRECTIVES, AbstractUninstall::TRASH_SCRIPT

Instance Attribute Summary

Attributes inherited from AbstractUninstall

#directives

Attributes inherited from AbstractArtifact

#cask

Instance Method Summary collapse

Methods inherited from AbstractUninstall

from_args, #initialize, #summarize, #to_h

Methods inherited from AbstractArtifact

#<=>, #config, dirmethod, dsl_key, english_article, english_name, #initialize, read_script_arguments, #staged_path_join_executable, #to_s

Methods included from Predicable

#attr_predicate

Constructor Details

This class inherits a constructor from Cask::Artifact::AbstractUninstall

Instance Method Details

#post_uninstall_phase(**options) ⇒ Object



15
16
17
# File 'brew/Library/Homebrew/cask/artifact/uninstall.rb', line 15

def post_uninstall_phase(**options)
  dispatch_uninstall_directive(:rmdir, **options)
end

#uninstall_phase(**options) ⇒ Object



8
9
10
11
12
13
# File 'brew/Library/Homebrew/cask/artifact/uninstall.rb', line 8

def uninstall_phase(**options)
  ORDERED_DIRECTIVES.reject { |directive_sym| directive_sym == :rmdir }
                    .each do |directive_sym|
                      dispatch_uninstall_directive(directive_sym, **options)
                    end
end