terragov 0.2.4 → 0.2.5

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
  SHA1:
3
- metadata.gz: 707493668e500d3df9dd3676a2a34a6076d2963b
4
- data.tar.gz: 9d1ab18b21d0b14338d60bcda07926c57f1cf3f8
3
+ metadata.gz: e8791b4c62c26dbe9c86b6124c08fceffb28524f
4
+ data.tar.gz: fa17899cf6a0c140e42fe860b7b1125b73c1dd54
5
5
  SHA512:
6
- metadata.gz: cdcdc9cd6184dc833f5ea4cd3920f6d8ef50532b331aa719b12a9e3695f7be90ac3a027e1eb9b7a4227522fb900a9f53d3e895a8d6314c95133ce7bf2cd891e7
7
- data.tar.gz: db62d131106c5756c7f148d8ea7a36269d61ef6e6e716bdcead3e29f25e6fe9b28c7d168526adc0a81b88e99a5b5dc9bebdd4a5a1dcbae09788439050c88a042
6
+ metadata.gz: f5374688ad526b250b36846e5c6661f92a0d17fc569603e585a98898a47e9d8d5c0a3f1a91af01a589187201bf26ba92cdd98f6e8edc0ee4f13f5abcbe0d51e8
7
+ data.tar.gz: a3bf778c7c6536bf549beb3e6877c363fc11ad909582aca7213abd2aae1da1366c3bcb631023d587445b42815754bd713f75249826433dbb08b11aa84ed44c6c
@@ -25,7 +25,13 @@ module Terragov
25
25
  end
26
26
 
27
27
  files.each do |file|
28
- File.delete(File.expand_path(file))
28
+ file = File.expand_path(file)
29
+ if Dir.exist?(file)
30
+ # No way to force delete with native Ruby Dir class
31
+ system("rm -rf #{file}")
32
+ else
33
+ File.delete(file)
34
+ end
29
35
  end
30
36
  puts 'Done'
31
37
  end
data/lib/terragov/cli.rb CHANGED
@@ -239,7 +239,7 @@ module Terragov
239
239
  end
240
240
 
241
241
  files_to_delete = [
242
- /\.terraform/,
242
+ /\.terraform$/,
243
243
  /terraform\.tfstate\.backup/,
244
244
  ]
245
245
 
@@ -1,3 +1,3 @@
1
1
  module Terragov
2
- VERSION = '0.2.4'.freeze
2
+ VERSION = '0.2.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terragov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laura Martin