Sha256: ecfaedde5e2471d27e09e9694ffcf59694db717afd64fbd92ab79dc07442026e

Contents?: true

Size: 461 Bytes

Versions: 30

Compression:

Stored size: 461 Bytes

Contents

module Fog
  module Compute
    class OpenStack
      class Real

        def delete_volume(volume_id)
          request(
            :expects  => 202,
            :method   => 'DELETE',
            :path     => "os-volumes/#{volume_id}"
          )
        end

      end

      class Mock
        def delete_volume(volume_id)
          response = Excon::Response.new
          response.status = 204
          response
        end
      end

    end
  end
end

Version data entries

30 entries across 30 versions & 12 rubygems

Version Path
cifrado-0.2.1 vendor/fog/lib/fog/openstack/requests/compute/delete_volume.rb
cifrado-0.2.0 vendor/fog/lib/fog/openstack/requests/compute/delete_volume.rb
hpfog-0.0.20 lib/fog/openstack/requests/compute/delete_volume.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/openstack/requests/compute/delete_volume.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/openstack/requests/compute/delete_volume.rb
fog-nirvanix-1.8.2 lib/fog/openstack/requests/compute/delete_volume.rb
fog-nirvanix-1.8.1 lib/fog/openstack/requests/compute/delete_volume.rb
fog-1.10.1 lib/fog/openstack/requests/compute/delete_volume.rb
fog-parser-fix-1.6.1 lib/fog/openstack/requests/compute/delete_volume.rb
fog-test-again-1.6.0 lib/fog/openstack/requests/compute/delete_volume.rb
fog-test-me-1.10.0 lib/fog/openstack/requests/compute/delete_volume.rb
fog-parser-fix-1.6.0 lib/fog/openstack/requests/compute/delete_volume.rb
cifrado-0.1.3 vendor/fog/lib/fog/openstack/requests/compute/delete_volume.rb
fog-1.10.0 lib/fog/openstack/requests/compute/delete_volume.rb
cifrado-0.1.2 vendor/fog/lib/fog/openstack/requests/compute/delete_volume.rb
cifrado-0.1.1 vendor/fog/lib/fog/openstack/requests/compute/delete_volume.rb
cifrado-0.1 vendor/fog/lib/fog/openstack/requests/compute/delete_volume.rb
fog-1.9.0 lib/fog/openstack/requests/compute/delete_volume.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/openstack/requests/compute/delete_volume.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/openstack/requests/compute/delete_volume.rb