class AnsibleTowerClient::InventorySource
Public Instance Methods
can_update?()
click to toggle source
# File lib/ansible_tower_client/base_models/inventory_source.rb, line 3 def can_update? response = api.get(related['update'].to_s).body updatable = JSON.parse(response) updatable['can_update'] end
update()
click to toggle source
# File lib/ansible_tower_client/base_models/inventory_source.rb, line 10 def update response = api.post(related['update'].to_s).body update = JSON.parse(response) api.inventory_updates.find(update['inventory_update']) end