Class: Cask::Artifact::Uninstall Private

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

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Artifact corresponding to the uninstall stanza.

Constant Summary

Constants inherited from AbstractUninstall

AbstractUninstall::METADATA_KEYS, AbstractUninstall::ORDERED_DIRECTIVES, AbstractUninstall::UPGRADE_REINSTALL_SKIP_DIRECTIVES

Constants inherited from AbstractArtifact

AbstractArtifact::DirectivesType

Instance Attribute Summary

Attributes inherited from AbstractUninstall

#directives

Attributes inherited from AbstractArtifact

#cask

Instance Method Summary collapse

Methods inherited from AbstractUninstall

bundle_identifier_for_pid, #bundle_ids_to_reopen, #deferred_directives, dispatch_directives, #dispatch_uninstall_directive, #each_resolved_path, #find_launchctl_with_wildcard, from_args, #initialize, owner_uid, parent_pid, #summarize, #to_h, #uninstall_quit

Methods included from SystemCommand::Mixin

#command_sandbox, #system_command, #system_command!

Methods included from OS::Mac::Cask::Artifact::AbstractUninstall

#undeletable?

Methods inherited from AbstractArtifact

#cask_sandbox, #config, dirmethod, dsl_key, english_article, english_name, #initialize, read_script_arguments, #requires_sudo?, #run_cask_sandbox, #sort_order, #staged_path_join_executable, #summarize, #to_args

Methods included from Utils::Output::Mixin

#issue_reporting_message, #odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_once, #opoo_outside_github_actions, #opoo_without_github_actions_annotation, #pretty_cannot_install, #pretty_deprecated, #pretty_disabled, #pretty_duration, #pretty_install_status, #pretty_installed, #pretty_uninstalled, #pretty_unmarked, #pretty_upgradable, #pretty_warning

Constructor Details

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

Instance Method Details

#post_uninstall_phase(command:, skip: false, force: false, verbose: false, successor: nil) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method returns an undefined value.

Parameters:

  • command (T.class_of(SystemCommand))
  • skip (Boolean) (defaults to: false)
  • force (Boolean) (defaults to: false)
  • verbose (Boolean) (defaults to: false)
  • successor (Cask, nil) (defaults to: nil)


36
37
38
# File 'cask/artifact/uninstall.rb', line 36

def post_uninstall_phase(command:, skip: false, force: false, verbose: false, successor: nil)
  AbstractUninstall.dispatch_directives([self], command:, deferred: true, force:, successor:)
end

#uninstall_phase(command:, skip: false, force: false, verbose: false, successor: nil, upgrade: false, reinstall: false, quit: true) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method returns an undefined value.

Parameters:

  • command (T.class_of(SystemCommand))
  • skip (Boolean) (defaults to: false)
  • force (Boolean) (defaults to: false)
  • verbose (Boolean) (defaults to: false)
  • successor (Cask, nil) (defaults to: nil)
  • upgrade (Boolean) (defaults to: false)
  • reinstall (Boolean) (defaults to: false)
  • quit (Boolean) (defaults to: true)


22
23
24
25
# File 'cask/artifact/uninstall.rb', line 22

def uninstall_phase(command:, skip: false, force: false, verbose: false, successor: nil, upgrade: false,
                    reinstall: false, quit: true)
  AbstractUninstall.dispatch_directives([self], command:, force:, successor:, upgrade:, reinstall:, quit:)
end