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

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

Instance Method Summary collapse

Instance Method Details

#cdnObject



33
34
35
36
37
38
39
40
41
42
43
# File 'lib/fog/rackspace/storage.rb', line 33

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