Sha256: 2fabeeb6693b02494bd50e68c9b7ef8e83dc38e488b442d38ffebae8301b2590

Contents?: true

Size: 478 Bytes

Versions: 1

Compression:

Stored size: 478 Bytes

Contents

module Rundock
  module Operation
    class Task < Base
      def run(backend, attributes = {})
        @instruction.each do |i|
          unless attributes[:task].key?(i.to_sym)
            Logger.warn("task not found and ignored: #{i}")
            next
          end

          scenario = Rundock::Builder::ScenarioBuilder.new(nil, nil).build_task(
            attributes[:task][i.to_sym], backend, attributes)

          scenario.run
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rundock-0.2.2 lib/rundock/operation/task.rb