Module: Fog::Storage::Rackspace::Utils

Included in:
Mock, Real
Defined in:
lib/fog/rackspace/storage.rb

Instance Method Summary collapse

Instance Method Details

#cdnObject



37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/fog/rackspace/storage.rb', line 37

def cdn
  @cdn ||= Fog::CDN.new(
    :provider           => 'Rackspace',
    :rackspace_api_key  => @rackspace_api_key,
    :rackspace_auth_url => @rackspace_auth_url,
    :rackspace_cdn_url => @rackspace_cdn_url,
    :rackspace_username => @rackspace_username,
    :rackspace_region => @rackspace_region,
    :rackspace_cdn_ssl => @rackspace_cdn_ssl
  )
  if @cdn.enabled?
    @cdn
  end
end