Method: Fog::CDN::Rackspace::Mock#put_container

Defined in:
lib/fog/rackspace/requests/cdn/put_container.rb

#put_container(name, options = {}) ⇒ Object



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/fog/rackspace/requests/cdn/put_container.rb', line 33

def put_container(name, options = {})
  response = Excon::Response.new
  response.status = 201
  response.headers = {
    "X-Cdn-Uri"=>"http://e4bbc22477d80eaf22bd-ca4e4e61e477bbd430e1f5b9dc9a19f5.r53.cf1.rackcdn.com",
    "X-Cdn-Ios-Uri"=>"http://3c10ef49037f74416445-ca4e4e61e477bbd430e1f5b9dc9a19f5.iosr.cf1.rackcdn.com",
    "X-Cdn-Ssl-Uri"=>"https://b722b8ee248259c37901-ca4e4e61e477bbd430e1f5b9dc9a19f5.ssl.cf1.rackcdn.com",
    "Content-Length"=>"18",
    "Date"=>"Fri, 01 Feb 2013 21:21:45 GMT",
    "Content-Type"=>"text/plain; charset=UTF-8",
    "X-Cdn-Streaming-Uri"=>"http://b82027c64cb4dd03670a-ca4e4e61e477bbd430e1f5b9dc9a19f5.r53.stream.cf1.rackcdn.com",
    "X-Trans-Id"=>"tx1b41ec63189f4862baa65e0c08711772"
  }
  response.body = "201 Created\n\n\n\n   "
  response
end