exe/floe in floe-0.9.0 vs exe/floe in floe-0.10.0

- old
+ new

@@ -8,10 +8,11 @@ version("v#{Floe::VERSION}\n") usage("[options] workflow input [workflow2 input2]") opt :workflow, "Path to your workflow json (legacy)", :type => :string opt :input, "JSON payload to input to the workflow (legacy)", :type => :string + opt :context, "JSON payload of the Context", :type => :string opt :credentials, "JSON payload with credentials", :type => :string opt :credentials_file, "Path to a file with credentials", :type => :string opt :docker_runner, "Type of runner for docker images", :type => :string, :short => 'r' opt :docker_runner_options, "Options to pass to the runner", :type => :strings, :short => 'o' @@ -47,10 +48,10 @@ File.read(opts[:credentials_file]) end workflows = args.each_slice(2).map do |workflow, input| - context = Floe::Workflow::Context.new(:input => input || opts[:input] || "{}") + context = Floe::Workflow::Context.new(opts[:context], :input => input || opts[:input] || "{}") Floe::Workflow.load(workflow, context, credentials) end # run