Module: Fog::Storage::Google::Utils

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

Instance Method Summary collapse

Instance Method Details

#http_url(params, expires) ⇒ Object



36
37
38
# File 'lib/fog/storage/google.rb', line 36

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

#https_url(params, expires) ⇒ Object



40
41
42
# File 'lib/fog/storage/google.rb', line 40

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

#url(params, expires) ⇒ Object



44
45
46
47
# File 'lib/fog/storage/google.rb', line 44

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