Sha256: 33f1422eecc9db9270ee27b7d0259fcaf8feb97ea591c14bacde601462a96ce9
Contents?: true
Size: 645 Bytes
Versions: 6
Compression:
Stored size: 645 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)) Logger.info("start task: #{i}") Logger.formatter.rec_lock scenario.run Logger.formatter.rec_unlock end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems