capistrano-websocket-rails 0.1.4 → 0.1.5

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: da80e0385bebf0192fb6ea82df72a93490a412f4
4
- data.tar.gz: b45e3b99c2940a05d90b2c2d43beb77e9827a571
3
+ metadata.gz: 037c3b1c882247f15e79af1fb22a343f87bcf98a
4
+ data.tar.gz: 21911c31285a74df594606f8034199ec1aad0e2d
5
5
  SHA512:
6
- metadata.gz: b55aaa606d18b436774ab334fac537066a8a06311fb1a293ad5084c1128292937b8d65c8eac84751935c383470912a6b01386052ceeee6fcd0ba8594da033d19
7
- data.tar.gz: 795787fca822b4878f1b37d227b8c3ef75010dd22cd2d16e164edac8ab1142ac975543b1273ac9510823c68a2e5b2cc305329641ba62957ffcaf9ab7f5bb9ff3
6
+ metadata.gz: 7300b0f4352c96f3f9c2052ddf58cd8c824706d0e4c8d994d9dd545a04874ec00f3a9e365079b3df2cb4fb49e6350c3566efa35c51d996b8e223c8fd524f901c
7
+ data.tar.gz: e15c301121c1b4b106500991c7106e22a85c3b49c4fcbf69015235a87b0b4fe26c14cd38da1400c83f52dd78377e6dd0cac313743d219c76e4ced8b6063e4599
@@ -1,8 +1,5 @@
1
1
  namespace :load do
2
- set :websocket_rails_pid, -> {
3
- puts; puts; puts shared_path; puts; puts
4
- puts; puts; puts File.join(shared_path, 'tmp', 'pids', 'websocket_rails.pid'); puts; puts
5
- File.join(shared_path, 'tmp', 'pids', 'websocket_rails.pid') }
2
+ set :websocket_rails_pid, -> { shared_path.join 'tmp', 'pids', 'websocket_rails.pid' }
6
3
  set :websocket_rails_env, -> { fetch :rack_env, fetch(:rails_env, fetch(:stage)) }
7
4
  set :websocket_rails_role, -> { :app }
8
5
  end
@@ -35,8 +32,7 @@ namespace :websocket_rails do
35
32
  desc 'Restart websocket-rails server'
36
33
  task :restart_server do
37
34
  on roles(fetch(:websocket_rails_role)), in: :sequence, wait: 5 do
38
- within(current_path) { stop_server }
39
- within(release_path) { start_server }
35
+ within(release_path) { restart_server }
40
36
  end
41
37
  end
42
38
 
@@ -54,6 +50,7 @@ namespace :websocket_rails do
54
50
  info 'Websocket-rails server not running.'
55
51
  end
56
52
  end
53
+ def restart_server; stop_server; start_server end
57
54
  def pid_file_exists?
58
55
  test "[ -f #{fetch(:websocket_rails_pid)} ]"
59
56
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module WebsocketRails
3
- VERSION = '0.1.4'
3
+ VERSION = '0.1.5'
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.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith