lib/fog/azurerm/utilities/general.rb in gitlab-fog-azure-rm-0.7.0 vs lib/fog/azurerm/utilities/general.rb in gitlab-fog-azure-rm-0.8.0

- old
+ new

@@ -123,9 +123,14 @@ def get_blob_endpoint(storage_account_name, enable_https = false, environment = ENVIRONMENT_AZURE_CLOUD) protocol = enable_https ? 'https' : 'http' "#{protocol}://#{storage_account_name}.blob#{storage_endpoint_suffix(environment)}" end +def get_blob_endpoint_with_domain(storage_account_name, enable_https = false, domain = 'blob.core.windows.net') + protocol = enable_https ? 'https' : 'http' + "#{protocol}://#{storage_account_name}.#{domain}" +end + def current_time time = Time.now.to_f.to_s time.split(/\W+/).join end