Sha256: 8c0263248f125701ef037649461352a9d5abe8f6ca3fdda1a1e7bd8daa1c27eb
Contents?: true
Size: 717 Bytes
Versions: 43
Compression:
Stored size: 717 Bytes
Contents
module Fog module Storage class Softlayer class Mock def put_container(name) @containers[name] = {} unless @containers[name] response = Excon::Response.new response.body = '' response.status = 201 response end end class Real # Create a new container # # ==== Parameters # * name<~String> - Name for container, should be < 256 bytes and must not contain '/' # def put_container(name) request( :expects => [201, 202], :method => 'PUT', :path => Fog::Softlayer.escape(name) ) end end end end end
Version data entries
43 entries across 43 versions & 1 rubygems