Sha256: 39d19806cae278d26b442aad68155842bb47aa9ab8591b1f8f9c1241c8e49163

Contents?: true

Size: 496 Bytes

Versions: 2

Compression:

Stored size: 496 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
        end

        def finish
          context.next_state = nil
          context.output     = context.input
          super
        end

        def running?
          false
        end

        def end?
          true
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
floe-0.11.0 lib/floe/workflow/states/succeed.rb
floe-0.10.0 lib/floe/workflow/states/succeed.rb