Class: Elasticity::ScriptStep

Inherits:
CustomJarStep show all
Defined in:
lib/elasticity/script_step.rb

Instance Attribute Summary

Attributes inherited from CustomJarStep

#action_on_failure, #arguments, #jar, #name

Instance Method Summary collapse

Methods inherited from CustomJarStep

#to_aws_step

Methods included from JobFlowStep

#aws_installation_step_name, #aws_installation_steps, included, #requires_installation?, steps_requiring_installation, #to_aws_step

Constructor Details

#initialize(script_name, *script_args) ⇒ ScriptStep

Returns a new instance of ScriptStep.



5
6
7
8
9
10
# File 'lib/elasticity/script_step.rb', line 5

def initialize(script_name, *script_args)
  @name = 'Elasticity Script Step'
  @jar = 's3://elasticmapreduce/libs/script-runner/script-runner.jar'
  @arguments = [script_name].concat(script_args)
  @action_on_failure = 'TERMINATE_JOB_FLOW'
end