alpha_omega 0.0.140 → 0.0.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/alpha_omega/deploy.rb +6 -5
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.141
|
data/lib/alpha_omega/deploy.rb
CHANGED
@@ -144,7 +144,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
144
144
|
# deploy:lock defaults
|
145
145
|
# =========================================================================
|
146
146
|
_cset(:want_unlock) { true }
|
147
|
-
_cset(:lock_timeout) {
|
147
|
+
_cset(:lock_timeout) { 86400 }
|
148
148
|
|
149
149
|
# =========================================================================
|
150
150
|
# These are helper methods that will be available to your recipes.
|
@@ -547,11 +547,12 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
547
547
|
lock_elasped = epoch-lock_epoch
|
548
548
|
|
549
549
|
if lock_elasped < lock_timeout
|
550
|
-
|
551
|
-
abort
|
552
|
-
elsif
|
553
|
-
puts "Found a chef lock by #{lock_user} #{epoch-lock_epoch} seconds ago: too old, deleting and ignoring"
|
550
|
+
true # don't do anything if locks timeout, jus advise unlock
|
554
551
|
end
|
552
|
+
|
553
|
+
puts "deploy locked by #{lock_user} #{epoch-lock_epoch} seconds ago"
|
554
|
+
puts "use bin/unlock to remove this lock"
|
555
|
+
abort
|
555
556
|
end
|
556
557
|
|
557
558
|
run_script = <<-SCRIPT
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alpha_omega
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 261
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 141
|
10
|
+
version: 0.0.141
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Nghiem
|