Sha256: 5465fc3c62cc9bc3503de55dc5f73cd265d2eb140473567529a2ac1266478c53
Contents?: true
Size: 776 Bytes
Versions: 16
Compression:
Stored size: 776 Bytes
Contents
unless Fog.mocking? module Fog class Slicehost # Get details of an image # # ==== Parameters # * image_id<~Integer> - Id of image to lookup # # ==== Returns # * response<~Excon::Response>: # * body<~Array>: # * 'id'<~Integer> - Id of the image # * 'name'<~String> - Name of the image def get_image(image_id) request( :expects => 200, :method => 'GET', :parser => Fog::Parsers::Slicehost::GetImage.new, :path => "images/#{image_id}.xml" ) end end end else module Fog class Slicehost def get_image(image_id) raise MockNotImplemented.new("Contributions welcome!") end end end end
Version data entries
16 entries across 16 versions & 1 rubygems