Class: Cask::Artifact::Moved Private
- Inherits:
-
Relocated
- Object
- AbstractArtifact
- Relocated
- Cask::Artifact::Moved
- Defined in:
- cask/artifact/moved.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.
Superclass for all artifacts that are installed by moving them to the target location.
Direct Known Subclasses
App, Artifact, AudioUnitPlugin, Colorpicker, Dictionary, Font, InputMethod, InternetPlugin, KeyboardLayout, Mdimporter, Prefpane, Qlplugin, ScreenSaver, Service, Suite, Vst3Plugin, VstPlugin
Instance Attribute Summary
Attributes inherited from AbstractArtifact
Class Method Summary collapse
-
.english_description ⇒ String
private
Instance Method Summary collapse
-
#install_phase(**options) ⇒ Object
private
-
#summarize_installed ⇒ Object
private
-
#uninstall_phase(**options) ⇒ Object
private
Methods inherited from Relocated
from_args, #initialize, #resolve_target, #source, #summarize, #target, #to_a
Methods inherited from AbstractArtifact
#<=>, #config, dirmethod, dsl_key, english_article, english_name, #initialize, read_script_arguments, #staged_path_join_executable, #summarize, #to_args, #to_s
Methods included from Predicable
Constructor Details
This class inherits a constructor from Cask::Artifact::Relocated
Class Method Details
.english_description ⇒ String
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.
14 15 16 |
# File 'cask/artifact/moved.rb', line 14 def self.english_description "#{english_name}s" end |
Instance Method Details
#install_phase(**options) ⇒ Object
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.
18 19 20 |
# File 'cask/artifact/moved.rb', line 18 def install_phase(**) move(**) end |
#summarize_installed ⇒ Object
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.
26 27 28 29 30 31 32 |
# File 'cask/artifact/moved.rb', line 26 def summarize_installed if target.exist? "#{printable_target} (#{target.abv})" else Formatter.error(printable_target, label: "Missing #{self.class.english_name}") end end |
#uninstall_phase(**options) ⇒ Object
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.
22 23 24 |
# File 'cask/artifact/moved.rb', line 22 def uninstall_phase(**) move_back(**) end |