Class: Commands::ResizeJobflowCommand
- Inherits:
-
StepCommand
- Object
- Command
- StepCommand
- Commands::ResizeJobflowCommand
- Defined in:
- lib/commands.rb
Instance Attribute Summary
Attributes inherited from StepCommand
#apps_path, #args, #beta_path, #enable_debugging_path, #hive_cmd, #hive_path, #pig_cmd, #pig_path, #script_runner_path, #step_action, #step_name
Attributes inherited from Command
#arg, #commands, #description, #logger, #name
Instance Method Summary collapse
Methods inherited from StepCommand
#default_enable_debugging_path, #default_hive_cmd, #default_hive_path, #default_pig_cmd, #default_pig_path, #default_resize_jobflow_cmd, #default_script_runner_path, #ensure_install_cmd, #extra_args, #initialize, #reorder_steps, #script_args
Methods inherited from Command
#enact, #get_field, #has_value, #have, #initialize, #option, #require, #require_single_jobflow, #resolve
Constructor Details
This class inherits a constructor from Commands::StepCommand
Instance Method Details
#steps ⇒ Object
308 309 310 311 312 313 314 315 316 317 318 |
# File 'lib/commands.rb', line 308 def steps step = { "Name" => get_field(:step_name, "Resize Job Flow Command"), "ActionOnFailure" => get_field(:step_action, "CANCEL_AND_WAIT"), "HadoopJarStep" => { "Jar" => get_field(:resize_jobflow_cmd), "Args" => @args } } return [ step ] end |
#validate ⇒ Object
304 305 306 |
# File 'lib/commands.rb', line 304 def validate super end |