Sha256: f2a44eaa31c21c969156d5e99ba326e535cc3b306915e2600f7fc8db2366b97c
Contents?: true
Size: 521 Bytes
Versions: 56
Compression:
Stored size: 521 Bytes
Contents
module CloudstackClient module Job ## # Retrieves the current status of asynchronous job. def query_job(id) params = { 'command' => 'queryAsyncJobResult', 'jobid' => id, } send_request(params) end ## # Lists all pending asynchronous jobs for the account. def list_jobs(opts = {}) params = { 'command' => 'listAsyncJobs' } params['listall'] = true if opts[:listall] send_request(params)['asyncjobs'] end end end
Version data entries
56 entries across 56 versions & 3 rubygems