Class: TerraformWrapper::Shared::Backends::Azure
- Includes:
- Logging
- Defined in:
- lib/terraform-wrapper/shared/backends/azure.rb
Constant Summary collapse
- @@type =
"azure"
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
Returns the value of attribute account.
-
#container ⇒ Object
readonly
Returns the value of attribute container.
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
- #hash ⇒ Object
-
#initialize(options:, variables:) ⇒ Azure
constructor
A new instance of Azure.
Methods included from Logging
configure_logger_for, logger_for
Methods inherited from Common
Constructor Details
#initialize(options:, variables:) ⇒ Azure
Returns a new instance of Azure.
34 35 36 |
# File 'lib/terraform-wrapper/shared/backends/azure.rb', line 34 def initialize(options:, variables:) construct(options: , variables: variables) end |
Instance Attribute Details
#account ⇒ Object (readonly)
Returns the value of attribute account.
27 28 29 |
# File 'lib/terraform-wrapper/shared/backends/azure.rb', line 27 def account @account end |
#container ⇒ Object (readonly)
Returns the value of attribute container.
28 29 30 |
# File 'lib/terraform-wrapper/shared/backends/azure.rb', line 28 def container @container end |
#group ⇒ Object (readonly)
Returns the value of attribute group.
29 30 31 |
# File 'lib/terraform-wrapper/shared/backends/azure.rb', line 29 def group @group end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
30 31 32 |
# File 'lib/terraform-wrapper/shared/backends/azure.rb', line 30 def key @key end |
Instance Method Details
#hash ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'lib/terraform-wrapper/shared/backends/azure.rb', line 40 def hash() return { "container_name" => @container, "key" => @key, "resource_group_name" => @group, "storage_account_name" => @account } end |