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.
121 122 123 124 125 126 |
# File 'lib/ansible/inventory.rb', line 121 def initialize(*args) super self.hosts = Host::Collection.new unless hosts self.vars = ActiveSupport::HashWithIndifferentAccess.new(vars) self.children = [] end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children
120 121 122 |
# File 'lib/ansible/inventory.rb', line 120 def children @children end |
#hosts ⇒ Object
Returns the value of attribute hosts
120 121 122 |
# File 'lib/ansible/inventory.rb', line 120 def hosts @hosts end |
#name ⇒ Object
Returns the value of attribute name
120 121 122 |
# File 'lib/ansible/inventory.rb', line 120 def name @name end |
#vars ⇒ Object
Returns the value of attribute vars
120 121 122 |
# File 'lib/ansible/inventory.rb', line 120 def vars @vars end |