Sha256: 7911be606fd3a7b6d3a324b3476ff62d5f8831bd95edff86b61826a9b133f577

Contents?: true

Size: 349 Bytes

Versions: 2

Compression:

Stored size: 349 Bytes

Contents

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

          backend.run_commands(attributes[i])
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rundock-0.2.0 lib/rundock/operation/task.rb
rundock-0.1.0 lib/rundock/operation/task.rb