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.
68 69 70 |
# File 'lib/fog/aws/storage.rb', line 68 def region @region end |
Instance Method Details
#cdn ⇒ Object
70 71 72 73 74 75 76 |
# File 'lib/fog/aws/storage.rb', line 70 def cdn @cdn ||= Fog::AWS::CDN.new( :aws_access_key_id => @aws_access_key_id, :aws_secret_access_key => @aws_secret_access_key, :use_iam_profile => @use_iam_profile ) end |
#http_url(params, expires) ⇒ Object
78 79 80 |
# File 'lib/fog/aws/storage.rb', line 78 def http_url(params, expires) scheme_host_path_query(params.merge(:scheme => 'http', :port => 80), expires) end |
#https_url(params, expires) ⇒ Object
82 83 84 |
# File 'lib/fog/aws/storage.rb', line 82 def https_url(params, expires) scheme_host_path_query(params.merge(:scheme => 'https', :port => 443), expires) end |
#url(params, expires) ⇒ Object
86 87 88 89 |
# File 'lib/fog/aws/storage.rb', line 86 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 |