Class: Cask::Artifact::AbstractInstallSteps Abstract Private
- Inherits:
-
AbstractArtifact
- Object
- AbstractArtifact
- Cask::Artifact::AbstractInstallSteps
- Defined in:
- cask/artifact/install_steps.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.
It cannot be directly instantiated. Subclasses must implement the abstract methods below.
Direct Known Subclasses
PostflightSteps, PreflightSteps, UninstallPostflightSteps, UninstallPreflightSteps
Constant Summary
Constants inherited from AbstractArtifact
Cask::Artifact::AbstractArtifact::DirectivesType
Instance Attribute Summary collapse
- #steps ⇒ Homebrew::InstallSteps::Steps readonly private
Attributes inherited from AbstractArtifact
Instance Method Summary collapse
- #initialize(cask, steps) ⇒ void constructor private
- #summarize ⇒ String private
- #to_args ⇒ Array<T.anything> private
Methods inherited from AbstractArtifact
#cask_sandbox, #cask_sandbox_command, #config, dirmethod, dsl_key, english_article, english_name, read_script_arguments, #run_cask_sandbox, #sort_order, #staged_path_join_executable
Methods included from Utils::Output::Mixin
#issue_reporting_message, #odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_outside_github_actions, #pretty_deprecated, #pretty_disabled, #pretty_duration, #pretty_install_status, #pretty_installed, #pretty_outdated, #pretty_uninstalled, #pretty_upgradable
Constructor Details
#initialize(cask, steps) ⇒ 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.
13 14 15 16 |
# File 'cask/artifact/install_steps.rb', line 13 def initialize(cask, steps) super @steps = T.let(Homebrew::InstallSteps::DSL.normalise_steps(steps), Homebrew::InstallSteps::Steps) end |
Instance Attribute Details
#steps ⇒ Homebrew::InstallSteps::Steps (readonly)
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.
19 20 21 |
# File 'cask/artifact/install_steps.rb', line 19 def steps @steps end |
Instance Method Details
#summarize ⇒ 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.
25 26 27 |
# File 'cask/artifact/install_steps.rb', line 25 def summarize ::Utils.pluralize("install step", steps.length, include_count: true) end |
#to_args ⇒ Array<T.anything>
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 |
# File 'cask/artifact/install_steps.rb', line 22 def to_args = [{ steps: }] |