lib/gush/cli.rb in gush-0.2.2 vs lib/gush/cli.rb in gush-0.2.3
- old
+ new
@@ -33,10 +33,11 @@
end
desc "start [workflow_id]", "Starts Workflow with given ID"
def start(*args)
id = args.shift
- client.start_workflow(id, args)
+ workflow = client.find_workflow(id)
+ client.start_workflow(workflow, args)
end
desc "create_and_start [WorkflowClass]", "Create and instantly start the new workflow"
def create_and_start(name, *args)
workflow = client.create_workflow(name)