# File lib/fog/rackspace/models/storage/directory.rb, line 38 def public_url requires :key @public_url ||= begin begin response = connection.cdn.head_container(key) if response.headers['X-CDN-Enabled'] == 'True' if connection.rackspace_cdn_ssl == true response.headers['X-CDN-SSL-URI'] else cdn_cname || response.headers['X-CDN-URI'] end end rescue Fog::Service::NotFound nil end end end