fdlcap 0.4.9 → 0.4.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/fdlcap.gemspec +2 -2
- data/lib/fdlcap/recipes/rolling_restart.rb +10 -5
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.10
|
data/fdlcap.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{fdlcap}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.10"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Factory Design Labs", "Gabe Varela", "Jay Zeschin"]
|
12
|
-
s.date = %q{2010-04-
|
12
|
+
s.date = %q{2010-04-07}
|
13
13
|
s.default_executable = %q{fdlcap}
|
14
14
|
s.email = %q{interactive@factorylabs.com}
|
15
15
|
s.executables = ["fdlcap"]
|
@@ -7,14 +7,19 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
7
7
|
Do a rolling restart of mongrels, one app server at a time.
|
8
8
|
DESC
|
9
9
|
task :rolling_restart do
|
10
|
-
find_servers(:roles => :app)
|
10
|
+
server_list = find_servers(:roles => :app)
|
11
|
+
server_list.each do |server|
|
11
12
|
ENV['HOSTS'] = "#{server.host}:#{server.port}"
|
12
13
|
nginx.stop
|
13
|
-
|
14
|
-
|
14
|
+
if server_list.size > 1
|
15
|
+
puts "Waiting 10 seconds for mongrels to finish processing on #{ENV['HOSTS']}."
|
16
|
+
sleep 10
|
17
|
+
end
|
15
18
|
mongrel.restart
|
16
|
-
|
17
|
-
|
19
|
+
if server_list.size > 1
|
20
|
+
puts "Waiting 60 seconds for mongrels to come back up on #{ENV['HOSTS']}."
|
21
|
+
sleep 60
|
22
|
+
end
|
18
23
|
nginx.start
|
19
24
|
end
|
20
25
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
8
|
+
- 10
|
9
|
+
version: 0.4.10
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Factory Design Labs
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-04-
|
19
|
+
date: 2010-04-07 00:00:00 -06:00
|
20
20
|
default_executable: fdlcap
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|