Class: AnsibleTowerClient::Inventory
- Defined in:
- lib/ansible_tower_client/base_models/inventory.rb
Instance Attribute Summary
Attributes inherited from BaseModel
Instance Method Summary collapse
Methods inherited from BaseModel
base_class, create, create!, #destroy, #destroy!, endpoint, #hashify, #initialize, #override_raw_attributes, #save, #save!, #update_attributes, #update_attributes!
Methods inherited from HashModel
#==, #[], #initialize, #inspect, #to_h, #to_json
Constructor Details
This class inherits a constructor from AnsibleTowerClient::BaseModel
Instance Method Details
#inventory_sources ⇒ Object
3 4 5 |
# File 'lib/ansible_tower_client/base_models/inventory.rb', line 3 def inventory_sources Collection.new(api, api.inventory_source_class).find_all_by_url(['inventory_sources']) end |
#root_groups ⇒ Object
13 14 15 |
# File 'lib/ansible_tower_client/base_models/inventory.rb', line 13 def root_groups Collection.new(api).find_all_by_url(['root_groups']) end |
#update_all_inventory_sources ⇒ Object
7 8 9 10 11 |
# File 'lib/ansible_tower_client/base_models/inventory.rb', line 7 def update_all_inventory_sources inventory_sources.each do |inventory_source| inventory_source.update if inventory_source.can_update? end end |