unless Fog.mocking? module Fog module Rackspace class Servers # List all images (IDs and names only) # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'id'<~Integer> - Id of the image # * 'name'<~String> - Name of the image def list_images request( :expects => [200, 203], :method => 'GET', :path => 'images.json' ) end end end end else module Fog module Rackspace class Servers def list_images end end end end end