Sha256: 2c8af86eff28003dc54c2a556dc667b8874bd4d7193936a4023de0a51351c085
Contents?: true
Size: 466 Bytes
Versions: 21
Compression:
Stored size: 466 Bytes
Contents
module AnsibleTowerClient class Inventory < BaseModel def inventory_sources Collection.new(api, api.inventory_source_class).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
21 entries across 21 versions & 1 rubygems