Class: Commands::JarStepCommand
- Inherits:
-
StepCommand
- Object
- Command
- StepCommand
- Commands::JarStepCommand
- Defined in:
- lib/commands.rb
Instance Attribute Summary collapse
-
#main_class ⇒ Object
Returns the value of attribute main_class.
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, #validate
Methods inherited from Command
#enact, #get_field, #has_value, #have, #initialize, #option, #require, #require_single_jobflow, #resolve, #validate
Constructor Details
This class inherits a constructor from Commands::StepCommand
Instance Attribute Details
#main_class ⇒ Object
Returns the value of attribute main_class.
494 495 496 |
# File 'lib/commands.rb', line 494 def main_class @main_class end |
Instance Method Details
#steps ⇒ Object
496 497 498 499 500 501 502 503 504 505 506 507 508 509 |
# File 'lib/commands.rb', line 496 def steps step = { "Name" => get_field(:step_name, "Example Jar Step"), "ActionOnFailure" => get_field(:step_action, "CANCEL_AND_WAIT"), "HadoopJarStep" => { "Jar" => get_field(:arg), "Args" => get_field(:args, []) } } if get_field(:main_class) then step["HadoopJarStep"]["MainClass"] = get_field(:main_class) end return [ step ] end |