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

Version Path
ansible_tower_client-0.21.3 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.21.2 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.21.1 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.21.0 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.20.2 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.20.1 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.20.0 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.19.1 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.19.0 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.18.0 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.17.0 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.16.0 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.15.0 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.14.0 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.13.0 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.12.2 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.12.1 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.12.0 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.11.0 lib/ansible_tower_client/base_models/inventory.rb
ansible_tower_client-0.10.0 lib/ansible_tower_client/base_models/inventory.rb