Sha256: 70c19c52126b36700a7b66aa92c2234a17342d22d7f6e6fe56fadc2c10bcf228

Contents?: true

Size: 348 Bytes

Versions: 4

Compression:

Stored size: 348 Bytes

Contents

module Actions
  class TestAction < Base

    def run(event = nil)
      case event
      when nil
        suspend do |suspended_action|
          puts "Execution plan id is #{suspended_action.execution_plan_id}"
          puts "Step id is #{suspended_action.step_id}"
        end
      else
        puts event.inspect
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman-tasks-0.1.3 app/lib/actions/test_action.rb
foreman-tasks-0.1.2 app/lib/actions/test_action.rb
foreman-tasks-0.1.1 app/lib/actions/test_action.rb
foreman-tasks-0.1.0 app/lib/actions/test_action.rb