torquebox-capistrano-support 3.0.2 → 3.1.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: 5323cb5829bd85d5ce5570fc11d0691c2c721967
4
- data.tar.gz: aac64be599a1a84f1a072b605c5fd6f133b62137
3
+ metadata.gz: cf7adb6c26d020021808c869226a32c99ecb4e55
4
+ data.tar.gz: e60587ae9c9eadabb2d3f51e0503f591d1085189
5
5
  SHA512:
6
- metadata.gz: 4941d9da8ca09a1b7bd37b98912d89aff1887909cbfc452d186a27a92ba6acc3cc70d2ec83c4d96ab973bec1ca14308fa0c4eb3a8208cd6e8c69cc62b197b610
7
- data.tar.gz: 2f951e7d2083d77e17dbf92708492db28e37950293364317be1e94f7404f1f4a342e8d8e51864e4c790a5f36346f0df1c77a9d19abfbcf3d8d66208fc7b25ae9
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
- if Capistrano::Configuration.instance
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.2
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-01-30 00:00:00.000000000 Z
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