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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 704e5dd464a21f362b8e52e642e7bc4c10ee63bc
4
- data.tar.gz: fa2398efc56da1afb6bfe1cb5efd3364e48674e8
3
+ metadata.gz: bf005c37322af39afaf4bcee9a0bd1688f5a91aa
4
+ data.tar.gz: a2e9d14168f5f86b767bb3f159a4f694dd85c56d
5
5
  SHA512:
6
- metadata.gz: 77579072a619cee78f93071fa7416e6872b7aff42fb5145f1ff2e24bfc1c78dd6c227fa3b1430dc9532fa5b399fb8f3b2b04d8c8118f0d5f054cd0734c7ae66e
7
- data.tar.gz: 4cda1a61b3a988d0c36afff1ac61f33bbb3ded12238f90647c5ec4be91e40b759b512e98749a0aff9745f8e3fb91f18cfe46e563e79c9c90af8a5802a86676da
6
+ metadata.gz: 51bf43bbc1ac8f075be26263cd14018705d76bc78d11c945f97aab4462d4d902c9591688845a1fd3e18455550691099477765cecc559e9ee71488a147e185e17
7
+ data.tar.gz: efff4364a823d48d899328d5afe4d595d3918694511c1394b88fa38dc2f7fabff213abd0c65260624b38183044906bd4dde019255dc818952cec60c37d946490
data/README.md CHANGED
@@ -22,6 +22,8 @@ Or install it yourself as:
22
22
  ## Usage
23
23
 
24
24
  ```ruby
25
+ require 'capistrano/deploy' # This should be required in advance
26
+
25
27
  # Capfile
26
28
  require 'capistrano/lazy_cleanup'
27
29
  ```
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module LazyCleanup
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -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."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-lazy_cleanup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takumasa Ochi