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 +4 -4
- data/lib/terragov/cleaner.rb +7 -1
- data/lib/terragov/cli.rb +1 -1
- data/lib/terragov/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8791b4c62c26dbe9c86b6124c08fceffb28524f
|
4
|
+
data.tar.gz: fa17899cf6a0c140e42fe860b7b1125b73c1dd54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5374688ad526b250b36846e5c6661f92a0d17fc569603e585a98898a47e9d8d5c0a3f1a91af01a589187201bf26ba92cdd98f6e8edc0ee4f13f5abcbe0d51e8
|
7
|
+
data.tar.gz: a3bf778c7c6536bf549beb3e6877c363fc11ad909582aca7213abd2aae1da1366c3bcb631023d587445b42815754bd713f75249826433dbb08b11aa84ed44c6c
|
data/lib/terragov/cleaner.rb
CHANGED
@@ -25,7 +25,13 @@ module Terragov
|
|
25
25
|
end
|
26
26
|
|
27
27
|
files.each do |file|
|
28
|
-
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
data/lib/terragov/version.rb
CHANGED