Class: Rundock::Target::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rundock/target/base.rb

Direct Known Subclasses

Group, Host

Constant Summary collapse

TargetNotImplementedError =
Class.new(NotImplementedError)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, contents = {}) ⇒ Base



10
11
12
13
14
# File 'lib/rundock/target/base.rb', line 10

def initialize(name, contents = {})
  @name = name
  @contents = contents
  @parsed_options = {}
end

Instance Attribute Details

#contentsObject (readonly)

Returns the value of attribute contents.



7
8
9
# File 'lib/rundock/target/base.rb', line 7

def contents
  @contents
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/rundock/target/base.rb', line 6

def name
  @name
end

#parsed_optionsObject (readonly)

Returns the value of attribute parsed_options.



8
9
10
# File 'lib/rundock/target/base.rb', line 8

def parsed_options
  @parsed_options
end

Instance Method Details

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



16
17
18
# File 'lib/rundock/target/base.rb', line 16

def create_nodes(target_info = {}, options = {})
  raise TargetNotImplementedError
end