2011-06-24 16:00:44 -07:00
|
|
|
module Fog
|
|
|
|
module Storage
|
|
|
|
class Rackspace
|
|
|
|
class Real
|
|
|
|
|
|
|
|
# Create a new object
|
|
|
|
#
|
|
|
|
# ==== Parameters
|
|
|
|
# * container<~String> - Name for container, should be < 256 bytes and must not contain '/'
|
|
|
|
# * object<~String> - Name for object
|
|
|
|
#
|
|
|
|
def put_object_manifest(container, object)
|
2011-09-16 23:46:22 -04:00
|
|
|
path = "#{Fog::Rackspace.escape(container)}/#{Fog::Rackspace.escape(object)}"
|
2011-06-24 16:00:44 -07:00
|
|
|
request(
|
|
|
|
:expects => 201,
|
|
|
|
:headers => {'X-Object-Manifest' => path},
|
|
|
|
:method => 'PUT',
|
|
|
|
:path => path
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|