terraspace_plugin_azurerm 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3845e196c53c10cdeb018eb26c60e29668f4cfd2de55296b8ccdd60373aa1582
4
- data.tar.gz: 49ba0fa4c80a3be68dfa90814e8dbad2ad4516591b447fd24c4bbe0a70c0e604
3
+ metadata.gz: 902f57dc75e9d5bb10cc082b3c5f27e3f882b1e111ef55c56b45b3120925d83d
4
+ data.tar.gz: 7c5b01e7c9d867579f6aacc518f2409f778189b1d97d3069123840cb62035ff1
5
5
  SHA512:
6
- metadata.gz: c4299d6ce1c0e8d0f96187803d2d34fdeb1dc7a0b17c14ccf11777b2b26e54d031a9a166754932c6f1575e09eac722cf5d6c0073bd3f2e219b2c9365605df646
7
- data.tar.gz: f44e6b81bc3bf2a6b7e3932d5221d71e9d45582c1ad7c36cedbf49ed270e52bdc8ffab496284df5aecf6bbf01a6c3f8f8b405213b1f3c0cae98562862dc1c2f9
6
+ metadata.gz: f440039512eb3f083b8ad5d8a82d4135495823909b40f7e7df9b20df5b4f17e9600e1a2e569f149c9f9b7544b10a019da26c70a4ff3dbcd5657f572b15b72e32
7
+ data.tar.gz: ab20ce488477524db6f7aa968101c7580114b3fcebb6356014ac27af0407a90003a209de94611c09b6eb3baed5a67d66de234c9c1d44fdd5fefc238ee91bf899
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## [0.2.0]
7
+ - #1 include layer interface, update template to use expansion method, add region method
8
+
6
9
  ## [0.1.1]
7
10
  - update generator init terraform state path
8
11
 
@@ -2,9 +2,9 @@
2
2
  # This is useful because azure storage accounts not allowed special characters and can only be 24 chars long.
3
3
  terraform {
4
4
  backend "azurerm" {
5
- resource_group_name = "<%= backend_expand('azurerm', 'terraform-resources-:LOCATION') %>"
6
- storage_account_name = "<%= backend_expand('azurerm', 'ts:SUBSCRIPTION_HASH:LOCATION:ENV') %>"
5
+ resource_group_name = "<%= expansion('terraform-resources-:LOCATION') %>"
6
+ storage_account_name = "<%= expansion('ts:SUBSCRIPTION_HASH:LOCATION:ENV') %>"
7
7
  container_name = "terraform-state"
8
- key = "<%= backend_expand('azurerm', ':LOCATION/:ENV/:BUILD_DIR/terraform.tfstate') %>"
8
+ key = "<%= expansion(':LOCATION/:ENV/:BUILD_DIR/terraform.tfstate') %>"
9
9
  }
10
10
  }
@@ -16,6 +16,7 @@ module TerraspacePluginAzurerm::Interfaces
16
16
 
17
17
  delegate :subscription_id, :subscription, :tenant_id, :tenant_id, :group, :location, to: :azure_info
18
18
  alias_method :namespace, :subscription
19
+ alias_method :region, :location
19
20
 
20
21
  def azure_info
21
22
  AzureInfo
@@ -1,6 +1,7 @@
1
1
  module TerraspacePluginAzurerm::Interfaces
2
2
  class Layer
3
3
  extend Memoist
4
+ include Terraspace::Plugin::Layer::Interface
4
5
 
5
6
  # interface method
6
7
  def namespace
@@ -11,10 +12,5 @@ module TerraspacePluginAzurerm::Interfaces
11
12
  def region
12
13
  AzureInfo.location
13
14
  end
14
-
15
- # interface method
16
- def provider
17
- "azurerm"
18
- end
19
15
  end
20
16
  end
@@ -1,3 +1,3 @@
1
1
  module TerraspacePluginAzurerm
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terraspace_plugin_azurerm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-24 00:00:00.000000000 Z
11
+ date: 2020-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: azure-storage-blob