capistrano-websocket-rails 0.1.2 → 0.1.3

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: aa747717f35989c68d5788129ceedc2a2c53e109
4
- data.tar.gz: 38b73506cdeee363ce00799231e91fb41ebfdaf0
3
+ metadata.gz: 2a29d109295924fc68cdbda110c0f2e9b3152a35
4
+ data.tar.gz: bf054866215fa70d8672c046031777ebf7e5ed21
5
5
  SHA512:
6
- metadata.gz: 6175940e8371e11e408406f2d0775b1d3b41f838ec8459ee2eb755b5f758613e6bac2ce6d377744712ff4b35e57cf156641d2c97101f45aaa3095d50823ddaa9
7
- data.tar.gz: 7cc9c2ce20469529cbfb19bf2cc996fc0204933cdbc73ba90cd29e3ed0328934bb92a177aaaea5f517a91cf946a3dfd30fa647f5fc4eaf5ad25841918ffb0929
6
+ metadata.gz: 0799d2b93b27da27a502222dda9e19990af9f220a74ee77911bcc502a08810cb1bafb219f13b61ef3d681167494c44955c81830e81b6c5e5d8267fe9a0fc9492
7
+ data.tar.gz: d9bfb846a4280a87a420b014229878cde2f5ce2a13615b485d7c0da2fd83ea010fb03bec373458d827fe9cc848d6dcf0c4b2c2de9d4d8eacda2ea76a2f06a082
@@ -5,11 +5,11 @@ namespace :load do
5
5
  end
6
6
 
7
7
  namespace :deploy do
8
- before :starting, :stop_websocket_server do
9
- invoke 'websocket_rails:stop_server'
10
- end
8
+ # before :starting, :stop_websocket_server do
9
+ # invoke 'websocket_rails:stop_server'
10
+ # end
11
11
  after :publishing, :start_websocket_server do
12
- invoke 'websocket_rails:start_server'
12
+ invoke 'websocket_rails:restart_server'
13
13
  end
14
14
  end
15
15
 
@@ -29,6 +29,14 @@ namespace :websocket_rails do
29
29
  end
30
30
  end
31
31
 
32
+ desc 'Restart websocket-rails server'
33
+ task :restart_server do
34
+ on roles(fetch(:websocket_rails_role)), in: :sequence, wait: 5 do
35
+ within(current_path) { stop_server }
36
+ within(release_path) { start_server }
37
+ end
38
+ end
39
+
32
40
  def start_server
33
41
  info 'Starting websocket-rails server...'
34
42
  run_rake_command! 'start_server'
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module WebsocketRails
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-websocket-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith