Module: Fog::Storage::AWS::Utils
Instance Method Summary collapse
- #cdn ⇒ Object
- #http_url(params, expires) ⇒ Object
- #https_url(params, expires) ⇒ Object
- #url(params, expires) ⇒ Object
Instance Method Details
#cdn ⇒ Object
58 59 60 61 62 63 |
# File 'lib/fog/storage/aws.rb', line 58 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
65 66 67 |
# File 'lib/fog/storage/aws.rb', line 65 def http_url(params, expires) "http://" << host_path_query(params, expires) end |
#https_url(params, expires) ⇒ Object
69 70 71 |
# File 'lib/fog/storage/aws.rb', line 69 def https_url(params, expires) "https://" << host_path_query(params, expires) end |