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

Defined in:
lib/fog/google/storage.rb

Overview

Shared utilities for both JSON and XML storage implementations

Class Method Summary collapse

Class Method Details

.storage_host_for_universe(universe_domain) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/fog/google/storage.rb', line 8

def self.storage_host_for_universe(universe_domain)
  domain = universe_domain.to_s.strip
  if !domain.empty? && domain != "googleapis.com"
    "storage.#{domain}"
  else
    GOOGLE_STORAGE_HOST
  end
end