Class: Hbc::Artifact::NestedContainer

Inherits:
AbstractArtifact show all
Defined in:
Library/Homebrew/cask/lib/hbc/artifact/nested_container.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractArtifact

#cask, #config

Instance Method Summary collapse

Methods inherited from AbstractArtifact

#<=>, dirmethod, dsl_key, english_article, english_name, read_script_arguments, #to_s

Methods included from Predicable

#attr_predicate

Constructor Details

#initialize(cask, path) ⇒ NestedContainer

Returns a new instance of NestedContainer



8
9
10
11
# File 'Library/Homebrew/cask/lib/hbc/artifact/nested_container.rb', line 8

def initialize(cask, path)
  super(cask)
  @path = cask.staged_path.join(path)
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path



6
7
8
# File 'Library/Homebrew/cask/lib/hbc/artifact/nested_container.rb', line 6

def path
  @path
end

Instance Method Details

#install_phase(**options) ⇒ Object



13
14
15
# File 'Library/Homebrew/cask/lib/hbc/artifact/nested_container.rb', line 13

def install_phase(**options)
  extract(**options)
end