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.



67
68
69
# File 'lib/fog/aws/storage.rb', line 67

def region
  @region
end

Instance Method Details

#cdnObject



69
70
71
72
73
74
75
# File 'lib/fog/aws/storage.rb', line 69

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



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

def http_url(params, expires)
  scheme_host_path_query(params.merge(:scheme => 'http', :port => 80), expires)
end

#https_url(params, expires) ⇒ Object



81
82
83
# File 'lib/fog/aws/storage.rb', line 81

def https_url(params, expires)
  scheme_host_path_query(params.merge(:scheme => 'https', :port => 443), expires)
end

#url(params, expires) ⇒ Object



85
86
87
88
# File 'lib/fog/aws/storage.rb', line 85

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