terraspace 2.2.3 → 2.2.4

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: 265cf001f291f8f16ba281504b5a10caad4931680320781c9fa57ea996d6eba0
4
- data.tar.gz: cfc3a6bc5c3210a5b6edf60d085f9a3487535052c01b573360d18eab44bafec0
3
+ metadata.gz: 4703e9e81e2f5a450a6f02e790024ea326970a0055c0f351b8c1cc62f4f805c9
4
+ data.tar.gz: 17496c6eb2902ccf90af84145fa88c532d4ac53afdfebb931260cd887c9080b2
5
5
  SHA512:
6
- metadata.gz: 4373aff69d41d00c1533545927ace7b2ebc9ef0d93449483c5ff5cf0960cbb5d935b1f4f20d21fa00bc79c23d722cde6d4e31c2ad215f78a3a9cd8fc5cf000e9
7
- data.tar.gz: 51773b55e7e9e51719e2c803294dba300ce7bbb9b1ab0ed5fa967313f204e3859943ab406c5228b7222e38ddc0296e80db8feba1622751f821e787a6b4b2ec4b
6
+ metadata.gz: fb49cea863d69660e36df977271942aff8801f518c30119697f2ca641c7257b266ec26931e790a1149e710229e5d7f988594067008cdc59584a4fb352f07a028
7
+ data.tar.gz: 58e52ee22af11bef98996a01662396f3f79b2ed1f05e46a435280e296aa9f2449bfd62f9a58849dd48c5e39c692ca160bebf1a8a8e10678fcf224e83788ffae9
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
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/), even before v1.0.
5
5
 
6
+ ## [2.2.4] - 2023-04-19
7
+ - [#293](https://github.com/boltops-tools/terraspace/pull/293) terrraspace import cli help fix
8
+ - [#299](https://github.com/boltops-tools/terraspace/pull/299) fix expansion for the case of ENV var is not set
9
+
6
10
  ## [2.2.3] - 2022-12-11
7
11
  - [#283](https://github.com/boltops-tools/terraspace/pull/283) update terraspace new cli help
8
12
  - [#285](https://github.com/boltops-tools/terraspace/pull/285) Only generate output files with content
@@ -109,7 +109,7 @@ module Terraspace
109
109
  Fmt.new(options.merge(mod: mod)).run
110
110
  end
111
111
 
112
- desc "import ADDR ID", "Import existing infrastructure into your Terraform state"
112
+ desc "import STACK ADDR ID", "Import existing infrastructure into your Terraform state"
113
113
  long_desc Help.text(:import)
114
114
  def import(mod, addr, id)
115
115
  Import.new(options.merge(mod: mod, addr: addr, id: id)).run
@@ -84,7 +84,7 @@ module Terraspace::Plugin::Expander
84
84
  elsif !ENV[name].blank?
85
85
  return ENV[name]
86
86
  else
87
- return unexpanded
87
+ return ''
88
88
  end
89
89
  if downcase == "namespace" && Terraspace.config.layering.enable_names.expansion
90
90
  value = friendly_name(value)
@@ -1,3 +1,3 @@
1
1
  module Terraspace
2
- VERSION = "2.2.3"
2
+ VERSION = "2.2.4"
3
3
  end
@@ -3,7 +3,7 @@ describe Terraspace::Plugin::Expander::Generic do
3
3
  let(:props) do
4
4
  {
5
5
  bucket: "my-bucket",
6
- key: ":env/:build_dir/terraform.tfstate", # variable notation expanded by terraspace
6
+ key: ":env/:TEAM/:ENVNOTSET/:build_dir/terraform.tfstate", # variable notation expanded by terraspace
7
7
  region: "us-west-2",
8
8
  encrypt: true,
9
9
  dynamodb_table: "terraform_locks"
@@ -15,12 +15,14 @@ describe Terraspace::Plugin::Expander::Generic do
15
15
  mod
16
16
  end
17
17
 
18
+ before { stub_const('ENV', {'TEAM' => 'backend'}) }
19
+
18
20
  context "default path" do
19
21
  it "expand" do
20
22
  result = expander.expand(props)
21
23
  expect(result).to eq({
22
24
  bucket: "my-bucket",
23
- key: "dev/stacks/core/terraform.tfstate",
25
+ key: "dev/backend/stacks/core/terraform.tfstate",
24
26
  region: "us-west-2",
25
27
  encrypt: true,
26
28
  dynamodb_table: "terraform_locks"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terraspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3
4
+ version: 2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-11 00:00:00.000000000 Z
11
+ date: 2023-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -346,7 +346,7 @@ dependencies:
346
346
  - - ">="
347
347
  - !ruby/object:Gem::Version
348
348
  version: '0'
349
- description:
349
+ description:
350
350
  email:
351
351
  - tung@boltops.com
352
352
  executables:
@@ -950,7 +950,7 @@ metadata:
950
950
  homepage_uri: https://terraspace.cloud
951
951
  source_code_uri: https://github.com/boltops-tools/terraspace
952
952
  changelog_uri: https://github.com/boltops-tools/terraspace/blob/master/CHANGELOG.md
953
- post_install_message:
953
+ post_install_message:
954
954
  rdoc_options: []
955
955
  require_paths:
956
956
  - lib
@@ -966,7 +966,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
966
966
  version: '0'
967
967
  requirements: []
968
968
  rubygems_version: 3.3.26
969
- signing_key:
969
+ signing_key:
970
970
  specification_version: 4
971
971
  summary: 'Terraspace: The Terraspace Framework'
972
972
  test_files: