Sha256: f89d9fb0fc5145a902aed9a485aaca378b7b0bda91dabe2e100d68fb6ab4b94c

Contents?: true

Size: 546 Bytes

Versions: 11

Compression:

Stored size: 546 Bytes

Contents

unless Fog.mocking?

  module Fog
    module Rackspace
      class Servers

        # Delete an image
        #
        # ==== Parameters
        # * image_id<~Integer> - Id of image to delete
        #
        def delete_image(image_id)
          request(
            :expects  => 204,
            :method   => 'DELETE',
            :path     => "images/#{image_id}"
          )
        end

      end
    end
  end

else

  module Fog
    module Rackspace
      class Servers

        def delete_image
        end

      end
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fog-0.0.31 lib/fog/rackspace/requests/servers/delete_image.rb
fog-0.0.30 lib/fog/rackspace/requests/servers/delete_image.rb
fog-0.0.29 lib/fog/rackspace/requests/servers/delete_image.rb
fog-0.0.28 lib/fog/rackspace/requests/servers/delete_image.rb
fog-0.0.27 lib/fog/rackspace/requests/servers/delete_image.rb
fog-0.0.26 lib/fog/rackspace/requests/servers/delete_image.rb
fog-0.0.25 lib/fog/rackspace/requests/servers/delete_image.rb
fog-0.0.24 lib/fog/rackspace/requests/servers/delete_image.rb
fog-0.0.23 lib/fog/rackspace/requests/servers/delete_image.rb
fog-0.0.22 lib/fog/rackspace/requests/servers/delete_image.rb
fog-0.0.21 lib/fog/rackspace/requests/servers/delete_image.rb