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

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

Overview

StageCommand

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#_runObject (readonly)

Returns the value of attribute _run.



35
36
37
# File 'lib/dapp/config/directive/shell/dimg.rb', line 35

def _run
  @_run
end

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