Class: Ansible::Inventory::Group
- Inherits:
-
Struct
- Object
- Struct
- Ansible::Inventory::Group
- Defined in:
- lib/ansible/inventory.rb
Defined Under Namespace
Classes: Collection
Instance Attribute Summary collapse
-
#hosts ⇒ Object
Returns the value of attribute hosts.
-
#name ⇒ Object
Returns the value of attribute name.
-
#vars ⇒ Object
Returns the value of attribute vars.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Group
constructor
A new instance of Group.
Constructor Details
#initialize(*args) ⇒ Group
Returns a new instance of Group.
97 98 99 100 101 |
# File 'lib/ansible/inventory.rb', line 97 def initialize(*args) super self.hosts = Host::Collection.new unless hosts self.vars = {} unless vars end |
Instance Attribute Details
#hosts ⇒ Object
Returns the value of attribute hosts
96 97 98 |
# File 'lib/ansible/inventory.rb', line 96 def hosts @hosts end |
#name ⇒ Object
Returns the value of attribute name
96 97 98 |
# File 'lib/ansible/inventory.rb', line 96 def name @name end |
#vars ⇒ Object
Returns the value of attribute vars
96 97 98 |
# File 'lib/ansible/inventory.rb', line 96 def vars @vars end |