Module: Fog::Storage::AWS::Utils

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#regionObject

Returns the value of attribute region.



61
62
63
# File 'lib/fog/aws/storage.rb', line 61

def region
  @region
end

Instance Method Details

#cdnObject



63
64
65
66
67
68
# File 'lib/fog/aws/storage.rb', line 63

def cdn
  @cdn ||= Fog::AWS::CDN.new(
    :aws_access_key_id => @aws_access_key_id,
    :aws_secret_access_key => @aws_secret_access_key
  )
end

#http_url(params, expires) ⇒ Object



70
71
72
# File 'lib/fog/aws/storage.rb', line 70

def http_url(params, expires)
  "http://" << host_path_query(params, expires)
end

#https_url(params, expires) ⇒ Object



74
75
76
# File 'lib/fog/aws/storage.rb', line 74

def https_url(params, expires)
  "https://" << host_path_query(params, expires)
end

#url(params, expires) ⇒ Object



78
79
80
81
# File 'lib/fog/aws/storage.rb', line 78

def url(params, expires)
  Fog::Logger.deprecation("Fog::Storage::AWS => #url is deprecated, use #https_url instead [light_black](#{caller.first})[/]")
  https_url(params, expires)
end