module Azure::Core

Public Class Methods

config() click to toggle source

Public: Access the service configuration.

Returns the Azure::Configuration instance.

# File lib/azure/core/configuration.rb, line 49
def self.config
  Configuration.instance
end
configure() { |config| ... } click to toggle source

Public: Sugar to configure the services in a neatly wrapped DSL.

Yields the Azure::Configuration instance.

Example:

Azure.configure do |config|
  config.storage_account_name = ENV["AZURE_STORAGE_ACCOUNT"]
end

Returns nothing.

# File lib/azure/core/configuration.rb, line 42
def self.configure
  yield config
end