lib/cli/workflow_task.rb in factor-0.0.5 vs lib/cli/workflow_task.rb in factor-0.0.6

- old
+ new

@@ -8,10 +8,10 @@ desc "call WORKFLOW","start a workflow" method_option :parameters, :type=>:hash, :default=>{}, :required=>false def call(workflow_name) puts "starting workflow #{workflow_name} with options #{options.parameters.to_s}" - engine = Factor::Engine.new + engine = Factor::Runtime::Engine.new(get_config[:email],get_config[:token]) id = engine.launch(workflow_name,options.parameters) puts "workflow executed with id #{id}" end \ No newline at end of file