Class: TerraspacePluginAzurerm::Interfaces::Backend::Base

Inherits:
Object
  • Object
show all
Extended by:
Memoist
Defined in:
lib/terraspace_plugin_azurerm/interfaces/backend/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(info) ⇒ Base

Returns a new instance of Base.



5
6
7
8
9
10
# File 'lib/terraspace_plugin_azurerm/interfaces/backend/base.rb', line 5

def initialize(info)
  @info = info
  @resource_group_name  = @info["resource_group_name"]
  @storage_account_name = @info["storage_account_name"]
  @container_name       = @info["container_name"]
end

Instance Method Details

#azure_infoObject



16
17
18
# File 'lib/terraspace_plugin_azurerm/interfaces/backend/base.rb', line 16

def azure_info
  AzureInfo
end

#configObject



12
13
14
# File 'lib/terraspace_plugin_azurerm/interfaces/backend/base.rb', line 12

def config
  TerraspacePluginAzurerm::Interfaces::Config.instance.config
end

#loggerObject



21
22
23
# File 'lib/terraspace_plugin_azurerm/interfaces/backend/base.rb', line 21

def logger
  Terraspace.logger
end