Class: Cask::Artifact::StageOnly Private

Inherits:
AbstractArtifact show all
Extended by:
T::Sig
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

#cask

Class Method Summary collapse

Instance Method Summary collapse

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::AbstractArtifact

Class Method Details

.from_args(cask, *args) ⇒ 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.

Raises:



14
15
16
17
18
# File 'cask/artifact/stage_only.rb', line 14

def self.from_args(cask, *args)
  raise CaskInvalidError.new(cask.token, "'stage_only' takes only a single argument: true") if args != [true]

  new(cask)
end

Instance Method Details

#summarizeString

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.

Returns:



26
27
28
# File 'cask/artifact/stage_only.rb', line 26

def summarize
  "true"
end

#to_aArray<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.

Returns:

  • (Array<Boolean>)


21
22
23
# File 'cask/artifact/stage_only.rb', line 21

def to_a
  [true]
end