Class: Configuration
- Inherits:
-
Object
- Object
- Configuration
- Defined in:
- lib/configuration.rb
Instance Attribute Summary collapse
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#azure_certificate_private_key_file ⇒ Object
Returns the value of attribute azure_certificate_private_key_file.
-
#azure_certificate_thumbprint ⇒ Object
Returns the value of attribute azure_certificate_thumbprint.
-
#azure_client_id ⇒ Object
Returns the value of attribute azure_client_id.
-
#azure_client_secret ⇒ Object
Returns the value of attribute azure_client_secret.
-
#azure_subscription_id ⇒ Object
Returns the value of attribute azure_subscription_id.
-
#azure_tenant_id ⇒ Object
Returns the value of attribute azure_tenant_id.
-
#resource ⇒ Object
Returns the value of attribute resource.
-
#vault_base_url ⇒ Object
Returns the value of attribute vault_base_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/configuration.rb', line 5 def initialize @azure_tenant_id = ENV["AZURE_VAULT_TENANT_ID"] @azure_client_id = ENV["AZURE_VAULT_CLIENT_ID"] @azure_client_secret = ENV["AZURE_VAULT_CLIENT_SECRET"] @azure_subscription_id = ENV["AZURE_VAULT_SUBSCRIPTION_ID"] @vault_base_url = ENV["AZURE_VAULT_BASE_URL"] @api_version = ENV["AZURE_VAULT_API_VERSION"] @resource = "https://vault.azure.net" @azure_certificate_thumbprint = nil @azure_certificate_private_key_file = nil end |
Instance Attribute Details
#api_version ⇒ Object
Returns the value of attribute api_version.
3 4 5 |
# File 'lib/configuration.rb', line 3 def api_version @api_version end |
#azure_certificate_private_key_file ⇒ Object
Returns the value of attribute azure_certificate_private_key_file.
3 4 5 |
# File 'lib/configuration.rb', line 3 def azure_certificate_private_key_file @azure_certificate_private_key_file end |
#azure_certificate_thumbprint ⇒ Object
Returns the value of attribute azure_certificate_thumbprint.
3 4 5 |
# File 'lib/configuration.rb', line 3 def azure_certificate_thumbprint @azure_certificate_thumbprint end |
#azure_client_id ⇒ Object
Returns the value of attribute azure_client_id.
3 4 5 |
# File 'lib/configuration.rb', line 3 def azure_client_id @azure_client_id end |
#azure_client_secret ⇒ Object
Returns the value of attribute azure_client_secret.
3 4 5 |
# File 'lib/configuration.rb', line 3 def azure_client_secret @azure_client_secret end |
#azure_subscription_id ⇒ Object
Returns the value of attribute azure_subscription_id.
3 4 5 |
# File 'lib/configuration.rb', line 3 def azure_subscription_id @azure_subscription_id end |
#azure_tenant_id ⇒ Object
Returns the value of attribute azure_tenant_id.
3 4 5 |
# File 'lib/configuration.rb', line 3 def azure_tenant_id @azure_tenant_id end |
#resource ⇒ Object
Returns the value of attribute resource.
3 4 5 |
# File 'lib/configuration.rb', line 3 def resource @resource end |
#vault_base_url ⇒ Object
Returns the value of attribute vault_base_url.
3 4 5 |
# File 'lib/configuration.rb', line 3 def vault_base_url @vault_base_url end |