capistrano_deploy_lock 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/capistrano/recipes/deploy_lock.rb +2 -1
- data/lib/capistrano_deploy_lock/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTYzYjUxMGJjZWEwZjUwN2ZjMjg0MTM3ODYyZjViNTRkYTBiNDhmNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDM5MjQ3YzUzYmJhMjhlMTAxMWM1MmYyZjRlYjY0NDAzZWE3OWM5NA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmY5YTA4MTIxZTliMTYxYzg4YTExNWViZGMwNGFjN2Q0MTJlZDY3ZmQwYWI4
|
10
|
+
NjdlMGUxMDEyMWY3Y2MyODE5OWQ5NzJmMDc2NjNiYmFkYWViYThjNDBkNWVl
|
11
|
+
Y2JlM2MwNmZjZGVhYmFiNDRkYzVjMDZkZDkzZjIwODkyOTliODI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjRmOGM2M2UwNjlmZGI5OTQxM2M3NTdjZWI0OTU2YjQ0YzBhNGQ4MGM2ODFk
|
14
|
+
ZTg1ZjI5ODYzMTNhZDJiYzhhYTY0NGEwOWZmOTFhNDRkOTk1YjdmNDMwMTE1
|
15
|
+
MGE3NjcxYmViY2VkMWRhYjAzZGZkN2FjM2ExMDdkNDgwNjQyZDg=
|
@@ -3,6 +3,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
3
3
|
before "deploy:update_code", "deploy:refresh_lock"
|
4
4
|
before "deploy:update_code", "deploy:create_lock"
|
5
5
|
after "deploy:create_symlink", "deploy:unlock"
|
6
|
+
after "deploy:rollback", "deploy:unlock"
|
6
7
|
|
7
8
|
# Default lock expiry of 10 minutes (in case deploy crashes or is interrupted)
|
8
9
|
_cset :default_lock_expiry, (10 * 60)
|
@@ -90,7 +91,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
90
91
|
:created_at => Time.now.utc,
|
91
92
|
:username => ENV['USER'],
|
92
93
|
:expire_at => self[:lock_expiry],
|
93
|
-
:message => self[:lock_message],
|
94
|
+
:message => self[:lock_message].to_s, # .to_s makes a String out of Highline::String
|
94
95
|
:custom => !!self[:custom_deploy_lock]
|
95
96
|
}
|
96
97
|
write_deploy_lock(deploy_lock_data)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano_deploy_lock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Broadbent
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Lock a server during deploy, to prevent people from deploying at the
|
14
14
|
same time.
|