Class: Ansible::Inventory::Host::Collection
- Inherits:
-
Array
- Object
- Array
- Ansible::Inventory::Host::Collection
- Defined in:
- lib/ansible/inventory.rb
Instance Method Summary collapse
Instance Method Details
#add(*args) ⇒ Object
84 85 86 87 88 89 90 91 92 |
# File 'lib/ansible/inventory.rb', line 84 def add(*args) host = if args.first.is_a?(Host) args.first else Host.new(*args) end self << host host end |