Sha256: e27362fa3f4546e05490b537ba9f8b213c9af81981a4e475394d111f37c9ad2d

Contents?: true

Size: 777 Bytes

Versions: 61

Compression:

Stored size: 777 Bytes

Contents

module Fog
  module Storage
    class HP
      class Real

        # Delete a shared object
        #
        # ==== Parameters
        # * shared_object_url<~String> - Url of the shared object
        #
        def delete_shared_object(shared_object_url)
          # split up the shared object url
          uri = URI.parse(shared_object_url)
          path   = uri.path

          response = shared_request(
            :expects  => 204,
            :method   => 'DELETE',
            :path     => path
          )
          response
        end

      end

      class Mock # :nodoc:all

        def delete_shared_object(shared_object_url)
          response = Excon::Response.new
          response.status = 204
          response
        end

      end

    end
  end
end

Version data entries

61 entries across 61 versions & 6 rubygems

Version Path
fog-maestrodev-1.15.0.20130927082724 lib/fog/hp/requests/storage/delete_shared_object.rb
fog-maestrodev-1.15.0.20130829165835 lib/fog/hp/requests/storage/delete_shared_object.rb
fog-1.15.0 lib/fog/hp/requests/storage/delete_shared_object.rb
gapinc-fog-1.14.0 lib/fog/hp/requests/storage/delete_shared_object.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/hp/requests/storage/delete_shared_object.rb
fog-1.14.0 lib/fog/hp/requests/storage/delete_shared_object.rb
fog-1.13.0 lib/fog/hp/requests/storage/delete_shared_object.rb
gapinc-fog-1.12.1.2 lib/fog/hp/requests/storage/delete_shared_object.rb
gapinc-fog-1.12.1.1 lib/fog/hp/requests/storage/delete_shared_object.rb
gapinc-fog-1.12.1a lib/fog/hp/requests/storage/delete_shared_object.rb
gapinc-fog-1.12.1 lib/fog/hp/requests/storage/delete_shared_object.rb
fog-1.12.1 lib/fog/hp/requests/storage/delete_shared_object.rb
fog-1.12.0 lib/fog/hp/requests/storage/delete_shared_object.rb
hpfog-0.0.20 lib/fog/hp/requests/storage/delete_shared_object.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/hp/requests/storage/delete_shared_object.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/hp/requests/storage/delete_shared_object.rb
fog-1.11.1 lib/fog/hp/requests/storage/delete_shared_object.rb
fog-1.11.0 lib/fog/hp/requests/storage/delete_shared_object.rb
fog-1.10.1 lib/fog/hp/requests/storage/delete_shared_object.rb
fog-test-me-1.10.0 lib/fog/hp/requests/storage/delete_shared_object.rb