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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#regionObject

Returns the value of attribute region.



58
59
60
# File 'lib/fog/storage/aws.rb', line 58

def region
  @region
end

Instance Method Details

#cdnObject



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

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



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

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

#https_url(params, expires) ⇒ Object



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

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

#url(params, expires) ⇒ Object



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

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