Class: Dapp::Dimg::Config::Directive::Shell::Dimg::StageCommand

Inherits:
Base show all
Defined in:
lib/dapp/dimg/config/directive/shell/dimg.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#clone_to_artifact

Methods inherited from Config::Directive::Base

#clone, #encode_with

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

#_runObject (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

#_versionObject (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