mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
41 lines
783 B
Ruby
41 lines
783 B
Ruby
unless Fog.mocking?
|
|
|
|
module Fog
|
|
module Rackspace
|
|
class Files
|
|
|
|
# Create a new object
|
|
#
|
|
# ==== Parameters
|
|
# * container<~String> - Name for container, should be < 256 bytes and must not contain '/'
|
|
#
|
|
def put_object(container, object, data)
|
|
data = parse_data(data)
|
|
response = storage_request(
|
|
:body => data[:body],
|
|
:expects => 201,
|
|
:headers => data[:headers,]
|
|
:method => 'PUT',
|
|
:path => "#{CGI.escape(container)}/#{CGI.escape(object)}"
|
|
)
|
|
response
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
|
|
else
|
|
|
|
module Fog
|
|
module Rackspace
|
|
class Servers
|
|
|
|
def put_container
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
|
|
end
|