torquebox-capistrano-support 3.0.2 → 3.1.0
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.
- checksums.yaml +4 -4
- data/lib/torquebox/capistrano/recipes.rb +14 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf7adb6c26d020021808c869226a32c99ecb4e55
|
4
|
+
data.tar.gz: e60587ae9c9eadabb2d3f51e0503f591d1085189
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 719086baaf979fd873b5a914b79140d02c2e2225b22ceb304eb82083f9f3b7bc593720810c67f5869d771b05f9423d3ce16016cd20117239b366c771daaedc92
|
7
|
+
data.tar.gz: 6031945422fdf4124e11ab262943c1c3fedbdc646a0df86457b749f29b1220e000b377b3a2c16cd376aae98db80314566f0421e0a2c14a8b12cecbd78b6fcbe7
|
@@ -201,6 +201,17 @@ module Capistrano
|
|
201
201
|
puts YAML.dump( create_deployment_descriptor( current_path ) )
|
202
202
|
end
|
203
203
|
|
204
|
+
desc "Restart application with zero downtime"
|
205
|
+
task :restart_zero_downtime do
|
206
|
+
run "touch #{current_path}/tmp/restart-all.txt"
|
207
|
+
end
|
208
|
+
|
209
|
+
desc "Deploy application with zero downtime"
|
210
|
+
task :deploy_zero_downtime do
|
211
|
+
deploy.update
|
212
|
+
restart_zero_downtime
|
213
|
+
end
|
214
|
+
|
204
215
|
end
|
205
216
|
|
206
217
|
before 'deploy:check', 'deploy:torquebox:check'
|
@@ -211,8 +222,8 @@ module Capistrano
|
|
211
222
|
end
|
212
223
|
end
|
213
224
|
|
214
|
-
|
215
|
-
|
225
|
+
if !Capistrano::Configuration.respond_to?(:instance)
|
226
|
+
abort "capistrano/ext/multistage is required, just make sure you are using Capistrano 2"
|
227
|
+
elsif Capistrano::Configuration.instance
|
216
228
|
Capistrano::TorqueBox.load_into(Capistrano::Configuration.instance)
|
217
229
|
end
|
218
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: torquebox-capistrano-support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The TorqueBox Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jruby-openssl
|
@@ -74,11 +74,11 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- licenses/cc0-1.0.txt
|
77
|
-
- lib/torquebox-capistrano-support.rb
|
78
77
|
- lib/org.torquebox.capistrano-support.rb
|
78
|
+
- lib/torquebox-capistrano-support.rb
|
79
79
|
- lib/torquebox/capistrano/recipes.rb
|
80
|
-
- spec/recipes_spec.rb
|
81
80
|
- spec/spec_helper.rb
|
81
|
+
- spec/recipes_spec.rb
|
82
82
|
homepage: http://torquebox.org/
|
83
83
|
licenses:
|
84
84
|
- Public Domain
|