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

Version Path
ansible_tower_client-0.8.0 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.7.0 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.6.0 lib/ansible_tower_client/base_models/inventory.rb