Sha256: 3767596f75782ef704a4cd66c620fda32befb88aa6d5a20087fb45eb9d8a9ddd

Contents?: true

Size: 511 Bytes

Versions: 2

Compression:

Stored size: 511 Bytes

Contents

# frozen_string_literal: true

module Floe
  class Workflow
    module States
      class Succeed < Floe::Workflow::State
        attr_reader :input_path, :output_path

        def initialize(workflow, name, payload)
          super

          @input_path  = Path.new(payload.fetch("InputPath", "$"))
          @output_path = Path.new(payload.fetch("OutputPath", "$"))
        end

        def end?
          true # TODO: Handle if this is ending a parallel or map state
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
floe-0.2.1 lib/floe/workflow/states/succeed.rb
floe-0.2.0 lib/floe/workflow/states/succeed.rb