Class: TerraformWrapper::Shared::Backends::Azure

Inherits:
Common
  • Object
show all
Includes:
Logging
Defined in:
lib/terraform-wrapper/shared/backends/azure.rb

Constant Summary collapse

@@type =
'azure'

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logging

configure_logger_for, logger_for

Methods inherited from Common

#type

Constructor Details

#initialize(options:, variables:) ⇒ Azure

Returns a new instance of Azure.



27
28
29
# File 'lib/terraform-wrapper/shared/backends/azure.rb', line 27

def initialize(options:, variables:)
  construct(options: options, variables: variables)
end

Instance Attribute Details

#accountObject (readonly)

Returns the value of attribute account.



23
24
25
# File 'lib/terraform-wrapper/shared/backends/azure.rb', line 23

def 
  @account
end

#containerObject (readonly)

Returns the value of attribute container.



23
24
25
# File 'lib/terraform-wrapper/shared/backends/azure.rb', line 23

def container
  @container
end

#groupObject (readonly)

Returns the value of attribute group.



23
24
25
# File 'lib/terraform-wrapper/shared/backends/azure.rb', line 23

def group
  @group
end

#keyObject (readonly)

Returns the value of attribute key.



23
24
25
# File 'lib/terraform-wrapper/shared/backends/azure.rb', line 23

def key
  @key
end

Instance Method Details

#hashObject



33
34
35
36
37
38
39
40
# File 'lib/terraform-wrapper/shared/backends/azure.rb', line 33

def hash
  {
    'container_name' => @container,
    'key' => @key,
    'resource_group_name' => @group,
    'storage_account_name' => @account
  }
end