Sha256: 9406fada10a03021d24485ec8206ef97760e68f67a42cd507c38609cac01e776

Contents?: true

Size: 591 Bytes

Versions: 2

Compression:

Stored size: 591 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require "floe"
require "optimist"

opts = Optimist.options do
  version "v#{Floe::VERSION}\n"
  opt :workflow, "Path to your workflow json", :type => :string, :required => true
  opt :inputs, "JSON payload to input to the workflow", :type => :string, :default => '{}'
  opt :credentials, "JSON payload with credentials", :type => :string, :default => '{}'
end

require "logger"
Floe.logger = Logger.new(STDOUT)

workflow = Floe::Workflow.load(opts[:workflow], opts[:inputs], opts[:credentials])

output = workflow.run!

puts output.inspect

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
floe-0.1.1 exe/floe
floe-0.1.0 exe/floe