Class: Rundock::Target::Group

Inherits:
Base show all
Defined in:
lib/rundock/plugin/target/group.rb

Constant Summary

Constants inherited from Base

Base::TargetNotImplementedError

Instance Attribute Summary

Attributes inherited from Base

#contents, #name, #parsed_options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Rundock::Target::Base

Instance Method Details

#create_nodes(target_info = {}, options = {}) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/rundock/plugin/target/group.rb', line 6

def create_nodes(target_info = {}, options = {})
  targets = @contents[:targets]

  nodes = []

  targets.each do |n|
    backend_builder = Rundock::Builder::BackendBuilder.new(options, n, target_info)
    backend = backend_builder.build
    @parsed_options[n.to_sym] = backend_builder.parsed_options
    nodes << Node.new(n, backend)
  end

  [nodes, @parsed_options]
end