Class: Dapp::Config::Directive::Shell::Dimg::StageCommand
- Defined in:
- lib/dapp/config/directive/shell/dimg.rb
Overview
StageCommand
Instance Attribute Summary collapse
-
#_run ⇒ Object
readonly
Returns the value of attribute _run.
-
#_version ⇒ Object
readonly
Returns the value of attribute _version.
Instance Method Summary collapse
-
#initialize(**kwargs, &blk) ⇒ StageCommand
constructor
A new instance of StageCommand.
- #run(*args) ⇒ Object
- #version(value) ⇒ Object
Constructor Details
#initialize(**kwargs, &blk) ⇒ StageCommand
Returns a new instance of StageCommand.
37 38 39 40 41 |
# File 'lib/dapp/config/directive/shell/dimg.rb', line 37 def initialize(**kwargs, &blk) @_run = [] super(**kwargs, &blk) end |
Instance Attribute Details
#_run ⇒ Object (readonly)
Returns the value of attribute _run.
35 36 37 |
# File 'lib/dapp/config/directive/shell/dimg.rb', line 35 def _run @_run end |
#_version ⇒ Object (readonly)
Returns the value of attribute _version.
34 35 36 |
# File 'lib/dapp/config/directive/shell/dimg.rb', line 34 def _version @_version end |
Instance Method Details
#run(*args) ⇒ Object
43 44 45 |
# File 'lib/dapp/config/directive/shell/dimg.rb', line 43 def run(*args) @_run.concat(args) end |
#version(value) ⇒ Object
47 48 49 |
# File 'lib/dapp/config/directive/shell/dimg.rb', line 47 def version(value) @_version = value end |