Sha256: 7cfc5ed73ba1741233e85017822014852ebc383b06bb398ac1aa4003e5006e9a

Contents?: true

Size: 527 Bytes

Versions: 19

Compression:

Stored size: 527 Bytes

Contents

module Rundock
  module Operation
    class Task < Base
      def run(backend, attributes = {})
        @instruction.each do |i|
          unless attributes[:task_info].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_info][i.to_sym], backend, Rundock::Attribute::NodeAttribute.new(attributes))

          scenario.run
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rundock-0.4.10 lib/rundock/operation/task.rb
rundock-0.4.8 lib/rundock/operation/task.rb
rundock-0.4.7 lib/rundock/operation/task.rb
rundock-0.4.6 lib/rundock/operation/task.rb
rundock-0.4.4 lib/rundock/operation/task.rb
rundock-0.4.3 lib/rundock/operation/task.rb
rundock-0.4.2 lib/rundock/operation/task.rb
rundock-0.4.1 lib/rundock/operation/task.rb
rundock-0.4.0 lib/rundock/operation/task.rb
rundock-0.3.0 lib/rundock/operation/task.rb
rundock-0.2.11 lib/rundock/operation/task.rb
rundock-0.2.10 lib/rundock/operation/task.rb
rundock-0.2.9 lib/rundock/operation/task.rb
rundock-0.2.8 lib/rundock/operation/task.rb
rundock-0.2.7 lib/rundock/operation/task.rb
rundock-0.2.6 lib/rundock/operation/task.rb
rundock-0.2.5 lib/rundock/operation/task.rb
rundock-0.2.4 lib/rundock/operation/task.rb
rundock-0.2.3 lib/rundock/operation/task.rb