Module: Fog::Storage::AWS::Utils
Instance Attribute Summary collapse
-
#region ⇒ Object
Returns the value of attribute region.
Instance Method Summary collapse
- #cdn ⇒ Object
- #http_url(params, expires) ⇒ Object
- #https_url(params, expires) ⇒ Object
- #url(params, expires) ⇒ Object
Instance Attribute Details
#region ⇒ Object
Returns the value of attribute region.
64 65 66 |
# File 'lib/fog/aws/storage.rb', line 64 def region @region end |
Instance Method Details
#cdn ⇒ Object
66 67 68 69 70 71 |
# File 'lib/fog/aws/storage.rb', line 66 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
73 74 75 |
# File 'lib/fog/aws/storage.rb', line 73 def http_url(params, expires) "http://" << host_path_query(params, expires) end |
#https_url(params, expires) ⇒ Object
77 78 79 |
# File 'lib/fog/aws/storage.rb', line 77 def https_url(params, expires) "https://" << host_path_query(params, expires) end |
#url(params, expires) ⇒ Object
81 82 83 84 |
# File 'lib/fog/aws/storage.rb', line 81 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 |