lib/function.rb in simplerubysteps-0.0.10 vs lib/function.rb in simplerubysteps-0.0.11
- old
+ new
@@ -29,13 +29,13 @@
puts event if ENV["DEBUG"]
puts context.inspect if ENV["DEBUG"]
if event["Token"]
unless $queue_client
- $sm.states[ENV["task"].to_sym].perform_action event["Input"], event["Token"]
+ $sm.deep_states[ENV["task"].to_sym].perform_action event["Input"], event["Token"]
else
- $sm.states[ENV["task"].to_sym].perform_queue_action event["Input"], event["Token"], $queue_client
+ $sm.deep_states[ENV["task"].to_sym].perform_queue_action event["Input"], event["Token"], $queue_client
end
else
- $sm.states[ENV["task"].to_sym].perform_action event["Input"]
+ $sm.deep_states[ENV["task"].to_sym].perform_action event["Input"]
end
end