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

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

Instance Method Summary collapse

Instance Method Details

#cdnObject



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

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