Sha256: 6cc252f2526fba77d64189e4407d7b635b18f9bc8bb0c07e3ec794ecec7833dd
Contents?: true
Size: 438 Bytes
Versions: 3
Compression:
Stored size: 438 Bytes
Contents
module AnsibleTowerClient class Inventory < BaseModel def inventory_sources Collection.new(api).find_all_by_url(related['inventory_sources']) end def update_all_inventory_sources inventory_sources.each do |inventory_source| inventory_source.update if inventory_source.can_update? end end def root_groups Collection.new(api).find_all_by_url(related['root_groups']) end end end
Version data entries
3 entries across 3 versions & 1 rubygems