Class: AnsibleTowerClient::WorkflowJobNode
- Defined in:
- lib/ansible_tower_client/base_models/workflow_job_node.rb
Instance Attribute Summary
Attributes inherited from BaseModel
Instance Method Summary collapse
- #job ⇒ Object
-
#job? ⇒ Boolean
to filter out WorkflowJobNode that is inventory sync or project sync.
- #workflow_job ⇒ Object
Methods inherited from BaseModel
base_class, create, create!, #destroy, #destroy!, endpoint, #hashify, #initialize, #override_raw_attributes, #save, #save!, #update_attributes, #update_attributes!
Methods inherited from HashModel
#==, #[], #initialize, #inspect, #to_h, #to_json
Constructor Details
This class inherits a constructor from AnsibleTowerClient::BaseModel
Instance Method Details
#job ⇒ Object
7 8 9 |
# File 'lib/ansible_tower_client/base_models/workflow_job_node.rb', line 7 def job api.jobs.find(job_id) if job? end |
#job? ⇒ Boolean
to filter out WorkflowJobNode that is inventory sync or project sync
12 13 14 15 16 |
# File 'lib/ansible_tower_client/base_models/workflow_job_node.rb', line 12 def job? return false if !respond_to?(:job_id) || job_id.nil? .job.match?(/jobs/) end |
#workflow_job ⇒ Object
3 4 5 |
# File 'lib/ansible_tower_client/base_models/workflow_job_node.rb', line 3 def workflow_job api.workflow_jobs.find(workflow_job_id) end |