lib/azure/storage/common/client.rb in azure-storage-common-2.0.2 vs lib/azure/storage/common/client.rb in azure-storage-common-2.0.3
- old
+ new
@@ -123,11 +123,11 @@
#
# When empty options are given, it will try to read settings from Environment Variables. Refer to [Azure::Storage::Common::ClientOptions.env_vars_mapping] for the mapping relationship
#
# @return [Azure::Storage::Common::Client]
def create(options = {}, &block)
- client = Client.new(options, &block)
+ Client.new(options, &block)
end
# Public: Creates an instance of [Azure::Storage::Common::Client] with Storage Emulator
#
# ==== Attributes
@@ -135,28 +135,28 @@
# * +proxy_uri+ - String. Used with +:use_development_storage+ if emulator is hosted other than localhost.
#
# @return [Azure::Storage::Common::Client]
def create_development(proxy_uri = nil, &block)
proxy_uri ||= StorageServiceClientConstants::DEV_STORE_URI
- client = create(use_development_storage: true, development_storage_proxy_uri: proxy_uri, &block)
+ create(use_development_storage: true, development_storage_proxy_uri: proxy_uri, &block)
end
# Public: Creates an instance of [Azure::Storage::Common::Client] from Environment Variables
#
# @return [Azure::Storage::Client]
def create_from_env(&block)
- client = create(&block)
+ create(&block)
end
# Public: Creates an instance of [Azure::Storage::Common::Client] from Environment Variables
#
# ==== Attributes
#
# * +connection_string+ - String. Please refer to https://azure.microsoft.com/en-us/documentation/articles/storage-configure-connection-string/.
#
# @return [Azure::Storage::Common::Client]
def create_from_connection_string(connection_string, &block)
- client = Client.new(connection_string, &block)
+ Client.new(connection_string, &block)
end
end
end
end