Sha256: cb08a3c9f37e24e975a0500f8a79c8b4d163be220003077418b2b28791a4406c

Contents?: true

Size: 401 Bytes

Versions: 24

Compression:

Stored size: 401 Bytes

Contents

module AnsibleTowerClient
  class InventorySource < BaseModel
    def can_update?
      response = api.get(related['update'].to_s).body

      updatable = JSON.parse(response)
      updatable['can_update']
    end

    def update
      response = api.post(related['update'].to_s).body

      update = JSON.parse(response)
      api.inventory_updates.find(update['inventory_update'])
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

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