TerraformDevKit 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ee5561c1fc4b5b3989d2500db456572ec97f54f
4
- data.tar.gz: 23fd6c508dd766815c9b088efdaf41b037a7a1f2
3
+ metadata.gz: 713f6ef3806009eefddbfdfc74d69481d2d2b45b
4
+ data.tar.gz: 0981d0e087efec31ff8939765222765a8963458c
5
5
  SHA512:
6
- metadata.gz: 8216fa0308818d19e1aed29d1defdf6c2bbdf65a823d44e9c62873b0a88526f6ee13ef6cd376a2c31500547c447825b9f7a7e8948ef4ef71d3b78bbf831d3592
7
- data.tar.gz: e1dfd2ee7f76fc345d98e17d82e7d738edb812ec769f1f08c2c28ea4cd9901a64865f7f3357025d00713d3af95e2c2f5475f586cf2ff37dd88b6f950b8e3504d
6
+ metadata.gz: 6612c58a4ab0b0f3128027d58580fef28dd7f61ff989c957f346d75db9c7dfcca4bf49698fcdb8fea40498ec01d2a789fceb0d900eba8560303c9872a9defa95
7
+ data.tar.gz: 31f34fa33228af2bec14ec246f8e374b145afac6b638e95e0d61986c57d655a838f88b5ccdd1ad4e2a844d0ebb1a160273fe7d930c3ad8e4309cc3e780814a55
data/README.md CHANGED
@@ -14,6 +14,7 @@ The script collection incldues support for:
14
14
  * Backing up the state from a failed Terraform execution
15
15
  * Multiplatform tools
16
16
  * Simple configuration management
17
+ * Terraform environment management
17
18
 
18
19
  Most of these scripts exist to provide support to a module development and testing environment for Terraform: [TerraformModules](https://github.com/betabandido/TerraformModules). But, they might be useful for other purposes too.
19
20
 
@@ -15,14 +15,13 @@ module TerraformDevKit
15
15
  def self.delete(env)
16
16
  if exist?(env)
17
17
  select('default')
18
- if TerraformDevKit::OS.host_os == 'windows'
19
- # TODO: Get rid of this hack once the following issue gets fixed:
20
- # https://github.com/hashicorp/terraform/issues/15343
21
- puts 'WARNING: Deleting an environment does not work on Windows'
22
- else
23
- Command.run("terraform env delete #{env}")
24
- end
18
+ Command.run("terraform env delete #{env}")
25
19
  end
20
+ rescue RuntimeError => error
21
+ # TODO: Get rid of this hack once the following issue gets fixed:
22
+ # https://github.com/hashicorp/terraform/issues/15343
23
+ puts "Error deleting terraform environment: #{error}" \
24
+ 'NOTE: Deleting an environment does not currently work on Windows'
26
25
  end
27
26
 
28
27
  def self.select(env)
@@ -1,3 +1,3 @@
1
1
  module TerraformDevKit
2
- VERSION = '0.1.3'.freeze
2
+ VERSION = '0.1.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: TerraformDevKit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Jimenez