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