capistrano-websocket-rails 0.1.7 → 0.1.8

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: 9f7e444133334b48a289f5d88c9d301a7c7c1874
4
- data.tar.gz: f35fe7b1da19807d17c9a369d699893377c0d6ef
3
+ metadata.gz: 3a373694affedf17eebcfb64ad35c816b559a704
4
+ data.tar.gz: a7b0b19236cc3477d2e192ff9f28182230a03e6f
5
5
  SHA512:
6
- metadata.gz: b2f5463331c52e0d8aa4342b03b5d302110b5b13947f8a3e518ec7e1a5e329cc48d650489014a19902de57a8addd921ada4c18537c089ef63c5d4fbe7628006e
7
- data.tar.gz: f4a40fd5ec39442ec17daf7df8c3d1c970f8cb47f98a53d7df2edb7be9b7dbdf64e64144d5f24f0872bb7bef66c3e8d8a9d324f8e1c80a5744952ac3c096b3bd
6
+ metadata.gz: 6e517dd36e5d45d96f123903fc92925143b2cf6bc07e46e248aefb728880b3cd4e9481ed53a8db0d548a3cb17246377326e845497591cd322c82719d86afb409
7
+ data.tar.gz: f0f4b10c988f9f8de265663d16c5348f62c86c975d37f3800649bf64ae99c3764a4b26b927fa8644fb0276b351b908dd097e2a12e60e62b522b5d58531b5be81
@@ -25,9 +25,23 @@ namespace :websocket_rails do
25
25
 
26
26
  desc 'Stop websocket-rails server'
27
27
  task :stop_server do
28
- on roles(fetch(:websocket_rails_role)) do
29
- within(release_path) { stop_server fetch(:websocket_rails_pid) }
28
+ on roles(fetch(:websocket_rails_role)), in: :sequence, wait: 5 do
29
+ within current_path do
30
+ websocket_pid = current_path.join 'tmp', 'pids', 'websocket_rails.pid'
31
+ if test "[ -f #{websocket_pid} ]"
32
+ info 'Stopping websocket-rails server...'
33
+ with rails_env: fetch(:rails_env) do
34
+ rake 'websocket_rails:stop_server'
35
+ end
36
+ info 'Websocket-rails server stopped.'
37
+ else
38
+ info 'Websocket-rails server not running.'
39
+ end
40
+ end
30
41
  end
42
+ # on roles(fetch(:websocket_rails_role)) do
43
+ # within(release_path) { stop_server fetch(:websocket_rails_pid) }
44
+ # end
31
45
  end
32
46
 
33
47
  desc 'Restart websocket-rails server'
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module WebsocketRails
3
- VERSION = '0.1.7'
3
+ VERSION = '0.1.8'
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith