Sha256: 6c5647d180e9b39b7ab9403dd57ace79a69bbf51c3255f57196bd9de9900fd0f

Contents?: true

Size: 454 Bytes

Versions: 28

Compression:

Stored size: 454 Bytes

Contents

module Fog
  module Volume
    class OpenStack
      class Real
        def delete_volume(volume_id)
          request(
            :expects  => 202,
            :method   => 'DELETE',
            :path     => "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

28 entries across 28 versions & 4 rubygems

Version Path
fog-1.36.0 lib/fog/openstack/requests/volume/delete_volume.rb
fog-1.35.0 lib/fog/openstack/requests/volume/delete_volume.rb
fog-2.0.0.pre.0 lib/fog/openstack/requests/volume/delete_volume.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/openstack/requests/volume/delete_volume.rb
fog-1.34.0 lib/fog/openstack/requests/volume/delete_volume.rb
fog-1.33.0 lib/fog/openstack/requests/volume/delete_volume.rb
fog-1.32.0 lib/fog/openstack/requests/volume/delete_volume.rb
fog-1.31.0 lib/fog/openstack/requests/volume/delete_volume.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/openstack/requests/volume/delete_volume.rb
fog-1.30.0 lib/fog/openstack/requests/volume/delete_volume.rb
fog-1.29.0 lib/fog/openstack/requests/volume/delete_volume.rb
fog-1.28.0 lib/fog/openstack/requests/volume/delete_volume.rb
fog-1.27.0 lib/fog/openstack/requests/volume/delete_volume.rb
fog-1.26.0 lib/fog/openstack/requests/volume/delete_volume.rb
fog-1.25.0 lib/fog/openstack/requests/volume/delete_volume.rb
nsidc-fog-1.24.1 lib/fog/openstack/requests/volume/delete_volume.rb
fog-1.24.0 lib/fog/openstack/requests/volume/delete_volume.rb
ns-fog-1.22.11 lib/fog/openstack/requests/volume/delete_volume.rb
ns-fog-1.22.10 lib/fog/openstack/requests/volume/delete_volume.rb
ns-fog-1.22.9 lib/fog/openstack/requests/volume/delete_volume.rb