Method: Rundock::Builder::OperationBuilder#build_task
- Defined in:
- lib/rundock/builder/operation_builder.rb
#build_task(tasks, backend, node_attribute) ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/rundock/builder/operation_builder.rb', line 51 def build_task(tasks, backend, node_attribute) node = Node.new(node_attribute.nodename, backend) node.hooks = HookBuilder.new(nil).build_from_attributes(node_attribute.nodeinfo) scen = Scenario.new tasks.each do |k, v| ope = build_operations(k, Array(v), node_attribute, nil, true) node.add_operation(ope) if ope end scen.nodes.push(node) if node scen end |