Class: Commands::BootstrapActionCommand

Inherits:
Command show all
Defined in:
lib/commands.rb

Instance Attribute Summary collapse

Attributes inherited from Command

#arg, #commands, #description, #logger, #name

Instance Method Summary collapse

Methods inherited from Command

#enact, #get_field, #has_value, #have, #option, #require, #require_single_jobflow, #resolve, #validate

Constructor Details

#initialize(*args) ⇒ BootstrapActionCommand

Returns a new instance of BootstrapActionCommand.



916
917
918
919
# File 'lib/commands.rb', line 916

def initialize(*args)
  super(*args)
  @args = []
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



914
915
916
# File 'lib/commands.rb', line 914

def args
  @args
end

#bootstrap_nameObject

Returns the value of attribute bootstrap_name.



914
915
916
# File 'lib/commands.rb', line 914

def bootstrap_name
  @bootstrap_name
end

Instance Method Details

#bootstrap_action(index) ⇒ Object



921
922
923
924
925
926
927
928
929
930
# File 'lib/commands.rb', line 921

def bootstrap_action(index)
  action = {
    "Name" => get_field(:bootstrap_name, "Bootstrap Action #{index}"),
    "ScriptBootstrapAction" => {
      "Path" => @arg,
      "Args" => @args
    }
  }
  return action
end