powder 0.3.0.pre3 → 0.3.0.pre4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/powder +8 -3
- data/lib/powder/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: de83ef5a6b218c71e71c9a79b8231732a645178b
|
4
|
+
data.tar.gz: 414b1caa88fb2d4a3958a57a4f24f4e3fcc7a01b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 986a5d53c6773bac1a603440d0167be9c9d1759fccb12efe72f39a5569c229af5beb02d1e9f2df49b6b851bfd45d65a4fbecb5f53339abd3ffb408b875d8e176
|
7
|
+
data.tar.gz: 59e56d01b063789f3da56ad87ea906ea9a3f6babc83b54090ef40a77140377316d0e0cf73a6598a17913e7630e448543f8c6cd4b076b48986035f0bc871adc13
|
data/bin/powder
CHANGED
@@ -229,9 +229,14 @@ module Powder
|
|
229
229
|
|
230
230
|
desc "cleanup", "Clean up invalid symbolic link"
|
231
231
|
def cleanup
|
232
|
-
Dir[POW_PATH + "/*"].map
|
233
|
-
|
234
|
-
|
232
|
+
Dir[POW_PATH + "/*"].map do |symlink|
|
233
|
+
begin
|
234
|
+
FileUtils.rm(symlink) unless File.exists?(File.readlink(symlink))
|
235
|
+
rescue
|
236
|
+
# Not all platforms support File.readlink, thus throwing exceptions.
|
237
|
+
# Unfortunately we can't decide then if a symlink is invalid.
|
238
|
+
end
|
239
|
+
end
|
235
240
|
end
|
236
241
|
|
237
242
|
desc "install", "Installs or updates pow"
|
data/lib/powder/version.rb
CHANGED