capistrano-lazy_cleanup 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/capistrano/lazy_cleanup/version.rb +1 -1
- data/lib/capistrano/tasks/lazy_cleanup.rake +2 -2
- 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: bf005c37322af39afaf4bcee9a0bd1688f5a91aa
|
4
|
+
data.tar.gz: a2e9d14168f5f86b767bb3f159a4f694dd85c56d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51bf43bbc1ac8f075be26263cd14018705d76bc78d11c945f97aab4462d4d902c9591688845a1fd3e18455550691099477765cecc559e9ee71488a147e185e17
|
7
|
+
data.tar.gz: efff4364a823d48d899328d5afe4d595d3918694511c1394b88fa38dc2f7fabff213abd0c65260624b38183044906bd4dde019255dc818952cec60c37d946490
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ namespace :capistrano do
|
|
24
24
|
debug t(:no_current_release, host: host.to_s)
|
25
25
|
end
|
26
26
|
if directories.any?
|
27
|
-
temp_dir = capture(:mktemp)
|
27
|
+
temp_dir = capture(:mktemp, '-d')
|
28
28
|
execute :mv, *directories, temp_dir
|
29
29
|
else
|
30
30
|
info t(:no_old_releases, host: host.to_s, keep_releases: fetch(:keep_releases))
|
@@ -42,7 +42,7 @@ namespace :capistrano do
|
|
42
42
|
execute :tar, "-czf",
|
43
43
|
deploy_path.join("rolled-back-release-#{last_release}.tar.gz"),
|
44
44
|
last_release_path
|
45
|
-
temp_dir = capture(:mktemp)
|
45
|
+
temp_dir = capture(:mktemp, '-d')
|
46
46
|
execute :mv, last_release_path, temp_dir
|
47
47
|
else
|
48
48
|
debug "Last release is the current release, skip cleanup_rollback."
|