Class: Dapp::Config::Directive::Shell::Artifact

Inherits:
Base
  • Object
show all
Defined in:
lib/dapp/config/directive/shell/artifact.rb

Overview

Artifact

Instance Attribute Summary collapse

Attributes inherited from Base

#_before_install, #_before_install_cache_version, #_before_setup, #_before_setup_cache_version, #_install, #_install_cache_version, #_setup, #_setup_cache_version

Instance Method Summary collapse

Methods inherited from Base

#before_install, #before_setup, #install, #reset_before_install, #reset_before_setup, #reset_install, #reset_setup, #setup

Constructor Details

#initializeArtifact

Returns a new instance of Artifact.



10
11
12
13
# File 'lib/dapp/config/directive/shell/artifact.rb', line 10

def initialize
  super
  @_build_artifact = []
end

Instance Attribute Details

#_build_artifactObject (readonly)

Returns the value of attribute _build_artifact.



7
8
9
# File 'lib/dapp/config/directive/shell/artifact.rb', line 7

def _build_artifact
  @_build_artifact
end

#_build_artifact_cache_versionObject (readonly)

Returns the value of attribute _build_artifact_cache_version.



8
9
10
# File 'lib/dapp/config/directive/shell/artifact.rb', line 8

def _build_artifact_cache_version
  @_build_artifact_cache_version
end

Instance Method Details

#build_artifact(*args, cache_version: nil) ⇒ Object



15
16
17
18
# File 'lib/dapp/config/directive/shell/artifact.rb', line 15

def build_artifact(*args, cache_version: nil)
  @_build_artifact.concat(args)
  @_build_artifact_cache_version = cache_version
end

#reset_allObject



24
25
26
27
# File 'lib/dapp/config/directive/shell/artifact.rb', line 24

def reset_all
  super
  reset_build_artifact
end

#reset_build_artifactObject



20
21
22
# File 'lib/dapp/config/directive/shell/artifact.rb', line 20

def reset_build_artifact
  @_build_artifact = []
end