openteam-capistrano 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,23 +1,17 @@
1
1
  if File.exists?('script/subscriber')
2
2
  Capistrano::Configuration.instance.load do
3
- # set subscriber hooks
4
3
  after 'deploy:update', 'subscriber:restart'
5
4
  after 'deploy:rollback', 'subscriber:restart'
6
5
 
7
6
  namespace :subscriber do
8
- def subsriber_pid_file
9
- "#{current_path}/tmp/pids/#{subscriber_name}.pid"
10
- end
11
-
12
7
  desc "Stop rabbitmq subscriber"
13
8
  task :stop do
14
- # subscriber will remove pid file automatically
15
- run "if [ -s #{subsriber_pid_file} ]; then kill `cat #{subsriber_pid_file}`; fi"
9
+ run "RAILS_ENV=#{rails_env} #{current_path}/script/subscriber stop"
16
10
  end
17
11
 
18
12
  desc "Start rabbitmq subscriber"
19
13
  task :start do
20
- run "RAILS_ENV=#{rails_env} #{current_path}/script/subscriber --name #{subscriber_name} start"
14
+ run "RAILS_ENV=#{rails_env} #{current_path}/script/subscriber start"
21
15
  end
22
16
 
23
17
  desc "Restart rabbitmq subscriber"
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = 'openteam-capistrano'
7
- gem.version = '0.0.4'
7
+ gem.version = '0.0.5'
8
8
  gem.authors = ["OpenTeam developers"]
9
9
  gem.email = ["developers@openteam.ru"]
10
10
  gem.description = %q{OpenTeam common capistrano recipe}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openteam-capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -125,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  segments:
127
127
  - 0
128
- hash: -2786004548502686108
128
+ hash: 4109376646261653517
129
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  none: false
131
131
  requirements:
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  segments:
136
136
  - 0
137
- hash: -2786004548502686108
137
+ hash: 4109376646261653517
138
138
  requirements: []
139
139
  rubyforge_project:
140
140
  rubygems_version: 1.8.24