Class: Rundock::Target::Host

Inherits:
Base show all
Defined in:
lib/rundock/plugin/target/host.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
# File 'lib/rundock/plugin/target/host.rb', line 6

def create_nodes(target_info = {}, options = {})
  backend_builder = Rundock::Builder::BackendBuilder.new(options, @name, target_info)
  backend = backend_builder.build
  @parsed_options = { @name.to_sym => backend_builder.parsed_options }
  [Array(Node.new(@name, backend)), @parsed_options]
end