Class: Dapp::Dimg::Config::Directive::Shell::Dimg::StageCommand
- Inherits:
-
Base
- Object
- Config::Directive::Base
- Base
- Dapp::Dimg::Config::Directive::Shell::Dimg::StageCommand
- Defined in:
- lib/dapp/dimg/config/directive/shell/dimg.rb
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
Methods inherited from Base
Methods inherited from Config::Directive::Base
Constructor Details
#initialize(**kwargs, &blk) ⇒ StageCommand
Returns a new instance of StageCommand.
45 46 47 48 |
# File 'lib/dapp/dimg/config/directive/shell/dimg.rb', line 45 def initialize(**kwargs, &blk) @_run = [] super(**kwargs, &blk) end |
Instance Attribute Details
#_run ⇒ Object (readonly)
Returns the value of attribute _run.
43 44 45 |
# File 'lib/dapp/dimg/config/directive/shell/dimg.rb', line 43 def _run @_run end |
#_version ⇒ Object (readonly)
Returns the value of attribute _version.
42 43 44 |
# File 'lib/dapp/dimg/config/directive/shell/dimg.rb', line 42 def _version @_version end |
Instance Method Details
#run(*args) ⇒ Object
50 51 52 |
# File 'lib/dapp/dimg/config/directive/shell/dimg.rb', line 50 def run(*args) sub_directive_eval { @_run.concat(args.flatten) } end |
#version(value) ⇒ Object
54 55 56 |
# File 'lib/dapp/dimg/config/directive/shell/dimg.rb', line 54 def version(value) sub_directive_eval { @_version = value } end |