Sha256: 0b5960993b3a54e56cf158a084662295de2ab392ae15de20d4988e5631a207b5
Contents?: true
Size: 604 Bytes
Versions: 40
Compression:
Stored size: 604 Bytes
Contents
require 'fog/core/collection' require 'fog/cloudstack/models/compute/job' module Fog module Compute class Cloudstack class Jobs < Fog::Collection model Fog::Compute::Cloudstack::Job def all data = service.list_async_jobs["listasyncjobsresponse"]["asyncjobs"] || [] load(data) end def get(job_id) if job = service.query_async_job_result('jobid' => job_id)["queryasyncjobresultresponse"] new(job) end rescue Fog::Compute::Cloudstack::BadRequest nil end end end end end
Version data entries
40 entries across 38 versions & 5 rubygems