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
-
#children ⇒ Object
Returns the value of attribute children.
-
#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.
110 111 112 113 114 115 |
# File 'lib/ansible/inventory.rb', line 110 def initialize(*args) super self.hosts = Host::Collection.new unless hosts self.vars = {} unless vars self.children = [] end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children
109 110 111 |
# File 'lib/ansible/inventory.rb', line 109 def children @children end |
#hosts ⇒ Object
Returns the value of attribute hosts
109 110 111 |
# File 'lib/ansible/inventory.rb', line 109 def hosts @hosts end |
#name ⇒ Object
Returns the value of attribute name
109 110 111 |
# File 'lib/ansible/inventory.rb', line 109 def name @name end |
#vars ⇒ Object
Returns the value of attribute vars
109 110 111 |
# File 'lib/ansible/inventory.rb', line 109 def vars @vars end |