Module: Fog::CDN::Rackspace::Base
Constant Summary collapse
- URI_HEADERS =
{ "X-Cdn-Ios-Uri" => :ios_uri, "X-Cdn-Uri" => :uri, "X-Cdn-Streaming-Uri" => :streaming_uri, "X-Cdn-Ssl-Uri" => :ssl_uri }.freeze
Instance Method Summary collapse
- #endpoint_uri(service_endpoint_url = nil) ⇒ Object
- #publish_container(container, publish = true) ⇒ Object
- #region ⇒ Object
- #service_name ⇒ Object
- #urls(container) ⇒ Object
Instance Method Details
#endpoint_uri(service_endpoint_url = nil) ⇒ Object
35 36 37 |
# File 'lib/fog/rackspace/cdn.rb', line 35 def endpoint_uri(service_endpoint_url=nil) @uri = super(@rackspace_cdn_url || service_endpoint_url, :rackspace_cdn_url) end |
#publish_container(container, publish = true) ⇒ Object
39 40 41 42 43 44 |
# File 'lib/fog/rackspace/cdn.rb', line 39 def publish_container(container, publish = true) enabled = publish ? 'True' : 'False' response = put_container(container.key, 'X-Cdn-Enabled' => enabled) return {} unless publish urls_from_headers(response.headers) end |
#region ⇒ Object
31 32 33 |
# File 'lib/fog/rackspace/cdn.rb', line 31 def region @rackspace_region end |
#service_name ⇒ Object
27 28 29 |
# File 'lib/fog/rackspace/cdn.rb', line 27 def service_name :cloudFilesCDN end |