Class: Confer::Inventory::Host

Inherits:
Object
  • Object
show all
Defined in:
lib/confer/inventory.rb

Overview

Internal: Encapsulates a single host in an Inventory.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Host

Internal: Iniitalize a new Host with configuration.

args - An array containing the name of the host and a Hash containing

the host options.


77
78
79
80
# File 'lib/confer/inventory.rb', line 77

def initialize(*args)
  @options = args.extract_options!
  @name    = args.first
end

Instance Attribute Details

#nameObject (readonly)

Public: A String containing the name of the host.



64
65
66
# File 'lib/confer/inventory.rb', line 64

def name
  @name
end

#optionsObject (readonly)

Public: A Hash containing the host options.



69
70
71
# File 'lib/confer/inventory.rb', line 69

def options
  @options
end