Class: Dapp::Config::Directive::Shell::Artifact
- Defined in:
- lib/dapp/config/directive/shell/artifact.rb
Overview
Artifact
Instance Attribute Summary collapse
-
#_build_artifact ⇒ Object
readonly
Returns the value of attribute _build_artifact.
-
#_build_artifact_cache_version ⇒ Object
readonly
Returns the value of attribute _build_artifact_cache_version.
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
- #build_artifact(*args, cache_version: nil) ⇒ Object
-
#initialize ⇒ Artifact
constructor
A new instance of Artifact.
- #reset_all ⇒ Object
- #reset_build_artifact ⇒ Object
Methods inherited from Base
#before_install, #before_setup, #install, #reset_before_install, #reset_before_setup, #reset_install, #reset_setup, #setup
Constructor Details
#initialize ⇒ Artifact
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_artifact ⇒ Object (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_version ⇒ Object (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_all ⇒ Object
24 25 26 27 |
# File 'lib/dapp/config/directive/shell/artifact.rb', line 24 def reset_all super reset_build_artifact end |
#reset_build_artifact ⇒ Object
20 21 22 |
# File 'lib/dapp/config/directive/shell/artifact.rb', line 20 def reset_build_artifact @_build_artifact = [] end |