Sha256: 2f1f451dd923c4ffce097088b160390f9af202bbf1dedfe65ddea3dd58d23c1e
Contents?: true
Size: 591 Bytes
Versions: 15
Compression:
Stored size: 591 Bytes
Contents
require 'fog/core/collection' require 'fog/storm_on_demand/models/compute/image' module Fog module Compute class StormOnDemand class Images < Fog::Collection model Fog::Compute::StormOnDemand::Image def create(options={}) service.create_image(options) true end def get(image_id) img = service.get_image_details(:id => image_id).body new(img) end def all(options={}) data = service.list_images(options).body['items'] load(data) end end end end end
Version data entries
15 entries across 15 versions & 4 rubygems