ManageIQ/floe

View on GitHub
lib/floe/workflow/states/succeed.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

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

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

        def running?
          false
        end

        def end?
          true
        end
      end
    end
  end
end