exe/floe in floe-0.3.1 vs exe/floe in floe-0.4.0

- old
+ new

@@ -16,13 +16,10 @@ Optimist.die(:docker_runner, "must be one of #{Floe::Workflow::Runner::TYPES.join(", ")}") unless Floe::Workflow::Runner::TYPES.include?(opts[:docker_runner]) require "logger" Floe.logger = Logger.new($stdout) -context = Floe::Workflow::Context.new(input: opts[:input]) -workflow = Floe::Workflow.load(opts[:workflow], context, opts[:credentials]) - runner_klass = case opts[:docker_runner] when "docker" Floe::Workflow::Runner::Docker when "podman" Floe::Workflow::Runner::Podman @@ -31,9 +28,12 @@ end runner_options = opts[:docker_runner_options].to_h { |opt| opt.split("=", 2) } Floe::Workflow::Runner.docker_runner = runner_klass.new(runner_options) + +context = Floe::Workflow::Context.new(:input => opts[:input]) +workflow = Floe::Workflow.load(opts[:workflow], context, opts[:credentials]) workflow.run! puts workflow.output.inspect