Sha256: 935fc16d8a8782ff6e0bda9bf83865c834a54ec8feba0de6675acfa981c5e784

Contents?: true

Size: 325 Bytes

Versions: 7

Compression:

Stored size: 325 Bytes

Contents

module AnsibleTowerClient
  class Job < BaseModel
    def self.endpoint
      "jobs".freeze
    end

    def extra_vars_hash
      extra_vars.empty? ? {} : hashify(:extra_vars)
    end

    def stdout
      out_url = related['stdout']
      return unless out_url
      api.get("#{out_url}?format=txt").body
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ansible_tower_client-0.5.0 lib/ansible_tower_client/base_models/job.rb
ansible_tower_client-0.4.1 lib/ansible_tower_client/base_models/job.rb
ansible_tower_client-0.4.0 lib/ansible_tower_client/base_models/job.rb
ansible_tower_client-0.3.3 lib/ansible_tower_client/job.rb
ansible_tower_client-0.3.2 lib/ansible_tower_client/job.rb
ansible_tower_client-0.3.1 lib/ansible_tower_client/job.rb
ansible_tower_client-0.3.0 lib/ansible_tower_client/job.rb