Class: Cask::Artifact::StageOnly Private
- Inherits:
-
AbstractArtifact
- Object
- AbstractArtifact
- Cask::Artifact::StageOnly
- Defined in:
- cask/artifact/stage_only.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 stage_only
stanza.
Instance Attribute Summary
Attributes inherited from AbstractArtifact
Class Method Summary collapse
Instance Method Summary collapse
- #summarize ⇒ String private
- #to_a ⇒ Array<Boolean> private
Methods inherited from AbstractArtifact
#config, dirmethod, dsl_key, english_article, english_name, #initialize, read_script_arguments, #staged_path_join_executable, #to_args
Constructor Details
This class inherits a constructor from Cask::Artifact::AbstractArtifact
Class Method Details
.from_args(cask, *args, **kwargs) ⇒ 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.
10 11 12 13 14 15 16 |
# File 'cask/artifact/stage_only.rb', line 10 def self.from_args(cask, *args, **kwargs) if (args != [true] && args != ["true"]) || kwargs.present? raise CaskInvalidError.new(cask.token, "'stage_only' takes only a single argument: true") end new(cask, true) 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.
24 25 26 |
# File 'cask/artifact/stage_only.rb', line 24 def summarize "true" end |
#to_a ⇒ Array<Boolean>
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/stage_only.rb', line 19 def to_a [true] end |