Sha256: 8d4062eaded04bec19f7829cee3de780bd14deecd26517cadb0ba287f5c1fbb9
Contents?: true
Size: 465 Bytes
Versions: 3
Compression:
Stored size: 465 Bytes
Contents
module AnsibleTowerClient class InventorySource < BaseModel def self.endpoint "inventory_sources".freeze end 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
3 entries across 3 versions & 1 rubygems