terraspace 0.2.0 → 0.2.1

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: 6cfa0c4e6aa1aa9871bc8b1902b283f2b91f5392738a066fdc58efb56153bed1
4
- data.tar.gz: 2219a5bbbd4dbad228e406d7ce586cf5bfdb8392868478e59e3adbd6dc4adda5
3
+ metadata.gz: 1a1cb3e8dfc7d02eae24d3e81a7e0a10033c9aa5890c41e77b35c29d84cc65c6
4
+ data.tar.gz: 31d1dce8f2c88b8d5548ba1e93ae7038d60b672b9a7e950cea5422ff504a5203
5
5
  SHA512:
6
- metadata.gz: f3bb558668074f2e278359a887e369c5182c95fd306973a9cae6c4bd7f95d9be653ce41b923e41e5470350c35234443a0ae3d4e16d5c8b35763feab9393a9c12
7
- data.tar.gz: 24acaffec5e568152133e014697404cc9d80a2bd79d54b700584db93a5884ca184508544519d349e833a17f84ac1cc4f2d095a787ed5cdb5216f25b37f04fb50
6
+ metadata.gz: fb5bad6aca8391331b16131d20289d847ecd7c19ad5d4e22e9bda785937367c02b94ecab70132b2e157a88a6761012a3049a01ed1defb4aaf91f7dfb0e7a9b25
7
+ data.tar.gz: 41dbfa2e0323cf7cfdc7cb3dd26278a109fbc4f1c8133ef7f3cf92aa9d146825ff777fbb0e5755284a12d6df77f94f13bbaff525849d1b642306dc452bda1cdb
@@ -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/), even before v1.0.
5
5
 
6
+ ## [0.2.1]
7
+ * #35 fix summary bug when ran multiple times with different envs
8
+
6
9
  ## [0.2.0]
7
10
  * #34 Terraform Cloud and Terraform Enterprise support added.
8
11
  * TFC Vars support: JSON and DSL. config.overwrite and config.overwrite_sensitive configs
@@ -25,10 +28,10 @@ This project *loosely tries* to adhere to [Semantic Versioning](http://semver.or
25
28
  * terraspace up: --reconfigure option. This is useful if upgrading Terraform version.
26
29
 
27
30
  ## [0.1.2]
28
- - #33 rspec-terraspace dependency added
31
+ * #33 rspec-terraspace dependency added
29
32
 
30
33
  ## [0.1.1]
31
- - #32 terraspace summary --short option
34
+ * #32 terraspace summary --short option
32
35
 
33
36
  ## [0.1.0]
34
- - Initial release
37
+ * Initial release
@@ -16,7 +16,7 @@ class Terraspace::CLI
16
16
  puts "Summary of resources based on backend storage statefiles"
17
17
  backend_expr = '.terraspace-cache/**/backend.*'
18
18
  # Currently summary assumes backend are within the same bucket and key prefix
19
- backend = Dir.glob(backend_expr).first
19
+ backend = Dir.glob(backend_expr).find { |p| p.include?("/#{Terraspace.env}/") }
20
20
  process(backend) if backend
21
21
  end
22
22
 
@@ -104,6 +104,7 @@ module Terraspace::Plugin::Summary
104
104
  index = path.index(regexp)
105
105
  unless index
106
106
  logger.error "ERROR: Unable to find the #{Terraspace.env} position in the prefix"
107
+ logger.error "path used: #{path}"
107
108
  exit 1
108
109
  end
109
110
  env_chars = Terraspace.env.size + 1
@@ -1,3 +1,3 @@
1
1
  module Terraspace
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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: 0.2.0
4
+ version: 0.2.1
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-08-20 00:00:00.000000000 Z
11
+ date: 2020-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport