Sha256: e97b6c00364b855ae044aae183758bbc01d726bb205b584d681e58d809915205

Contents?: true

Size: 494 Bytes

Versions: 9

Compression:

Stored size: 494 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 start(input)
          super
          context.next_state = nil
          context.output     = input
        end

        def running?
          false
        end

        def end?
          true
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
floe-0.9.0 lib/floe/workflow/states/succeed.rb
floe-0.7.1 lib/floe/workflow/states/succeed.rb
floe-0.8.0 lib/floe/workflow/states/succeed.rb
floe-0.7.0 lib/floe/workflow/states/succeed.rb
floe-0.6.1 lib/floe/workflow/states/succeed.rb
floe-0.6.0 lib/floe/workflow/states/succeed.rb
floe-0.5.0 lib/floe/workflow/states/succeed.rb
floe-0.4.1 lib/floe/workflow/states/succeed.rb
floe-0.4.0 lib/floe/workflow/states/succeed.rb