class Commands::JarStepCommand

Attributes

main_class[RW]

Public Instance Methods

steps() click to toggle source
# 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