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.



34
35
36
# File 'lib/terraform-wrapper/shared/backends/azure.rb', line 34

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

Instance Attribute Details

#accountObject (readonly)

Returns the value of attribute account.



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

def 
  @account
end

#containerObject (readonly)

Returns the value of attribute container.



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

def container
  @container
end

#groupObject (readonly)

Returns the value of attribute group.



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

def group
  @group
end

#keyObject (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

#hashObject



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