Module: Rubineti::Jobs
- Defined in:
- lib/rubineti/compute/jobs.rb
Instance Method Summary collapse
-
#job_delete(job_id) ⇒ Object
Cancel a not-yet-started job.
-
#job_list(job_id) ⇒ Object
Returns a jobs status.
-
#job_wait(job_id, params = {}) ⇒ Object
Waits for changes on a job.
-
#jobs_list ⇒ Object
Returns an Array of all jobs.
Instance Method Details
#job_delete(job_id) ⇒ Object
Cancel a not-yet-started job.
job_id
: A String of the ‘job id’.
24 25 26 27 |
# File 'lib/rubineti/compute/jobs.rb', line 24 def job_delete job_id warn "WARNING: Jobs#job_delete not implemented." # delete "/#{Ganeti::Version}/jobs/#{job_id}/delete" end |
#job_list(job_id) ⇒ Object
Returns a jobs status.
job_id
: A String of the ‘job id’.
15 16 17 |
# File 'lib/rubineti/compute/jobs.rb', line 15 def job_list job_id get "/#{Ganeti::Version}/jobs/#{job_id}" end |
#job_wait(job_id, params = {}) ⇒ Object
Waits for changes on a job.
job_id
: A String of the ‘job id’.
Body parameters:
- http://docs.ganeti.org/ganeti/#{Ganeti::Version}.1/html/rapi.html#jobs-job-id-wait
37 38 39 40 |
# File 'lib/rubineti/compute/jobs.rb', line 37 def job_wait job_id, params = {} warn "WARNING: Jobs#job_wait not implemented." # get "/#{Ganeti::Version}/jobs/#{job_id}/wait", params end |