Sha256: c4286b8ec446fe3d36484f83bd2e538423a984218da1982147421b72a858e4bd
Contents?: true
Size: 825 Bytes
Versions: 29
Compression:
Stored size: 825 Bytes
Contents
module Fog module CDN class HP class Real # Delete an existing container # # ==== Parameters # * name<~String> - Name of container to delete # def delete_container(name) response = request( :expects => 204, :method => 'DELETE', :path => Fog::HP.escape(name) ) response end end class Mock # :nodoc:all def delete_container(name) response = Excon::Response.new if self.data[:cdn_containers][name] self.data[:cdn_containers].delete(name) response.status = 204 response.body = "" response else raise Fog::CDN::HP::NotFound end end end end end end
Version data entries
29 entries across 29 versions & 4 rubygems