Sha256: 7c4075120f5a31619dc4e4e9cba4c99de9d7cc39122d99435703412aa9353d97

Contents?: true

Size: 430 Bytes

Versions: 2

Compression:

Stored size: 430 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 run!(input)
          [nil, input]
        end

        def status
          "success"
        end

        def end?
          true
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
floe-0.3.1 lib/floe/workflow/states/succeed.rb
floe-0.3.0 lib/floe/workflow/states/succeed.rb