Sha256: 9493259984bab5b29a26b3554019b22670c17f5f9e2c5daefec2f41322bb767b
Contents?: true
Size: 483 Bytes
Versions: 5
Compression:
Stored size: 483 Bytes
Contents
module AnsibleTowerClient class Project < BaseModel def playbooks Collection.new(api).find_all_by_url(related['playbooks']) 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.project_updates.find(update['project_update']) end end end
Version data entries
5 entries across 5 versions & 1 rubygems