class AnsibleTowerClient::Inventory
Public Instance Methods
inventory_sources()
click to toggle source
# 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(related['inventory_sources']) end
root_groups()
click to toggle source
# File lib/ansible_tower_client/base_models/inventory.rb, line 13 def root_groups Collection.new(api).find_all_by_url(related['root_groups']) end
update_all_inventory_sources()
click to toggle source
# 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