capistrano-s3_archive 1.0.2 → 1.0.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98207150dd4b36e1db121d13d8e65600a56ab69fdc76ee00d3631a9c5b375006
|
4
|
+
data.tar.gz: 1244b8a8ddd17d92b57f7b8e5bdba416ebc6a78e03806c307f44b6bd958f2bec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0949eb72ab4e3d67e27ce1dc399c3cd0813652943fe371d4713f460a696d28af4256f2d3cc9a9df28987c0a14fb132a816ee08bb3db0ac331e9f7867d1243ff
|
7
|
+
data.tar.gz: f5ad8fbc697b9e5cdb3be45610c86b1cfb0dad8dc7faf7abd5f02f93ac3f4cfa3cf4d8951293dc990c165bde8f9bcdf892421ce390be3c0efe18007c13ba1a13
|
@@ -51,7 +51,7 @@ module Capistrano
|
|
51
51
|
return if downloaded_files.count <= keep
|
52
52
|
|
53
53
|
remove_keys = (downloaded_files - downloaded_files.last(keep)).map { |f| File.basename(f, '.*') }.flat_map { |f| ["#{f}*", ".#{f}*"] }
|
54
|
-
to_be_removes = Dir.glob(remove_keys, base: download_dir)
|
54
|
+
to_be_removes = Dir.glob(remove_keys, base: download_dir).map { |f| File.join(download_dir, f) }
|
55
55
|
|
56
56
|
remove(to_be_removes, force: true, verbose: true)
|
57
57
|
end
|