lib/elasticity/job_flow_step.rb in elasticity-2.5.1 vs lib/elasticity/job_flow_step.rb in elasticity-2.5.2

- old
+ new

@@ -10,21 +10,29 @@ def requires_installation? self.class.requires_installation? end - def aws_installation_step - self.class.aws_installation_step + def aws_installation_steps + self.class.aws_installation_steps end + def aws_installation_step_name + self.class.aws_installation_step_name + end + module ClassMethods def requires_installation? false end - def aws_installation_step + def aws_installation_steps raise RuntimeError, '.aws_installation_step is required to be defined when a step requires installation (e.g. Pig, Hive).' + end + + def aws_installation_step_name + raise RuntimeError, '.aws_installation_step_name is required to be defined when a step requires installation (e.g. Pig, Hive).' end end def self.included(base)