capistrano-hivequeen 4.0.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -122,42 +122,11 @@ Capistrano::Configuration.instance.load do
122
122
  end
123
123
  end
124
124
 
125
- before "deploy:restart", "app:upgrade"
126
- namespace :app do
127
- # NB: if preload_app is true, reload will not pick up application changes.
128
- # Use upgrade instead.
129
- # See http://unicorn.bogomips.org/SIGNALS.html
130
- %w(start stop restart upgrade).each do |action|
131
- desc "#{action} the unicorn processes"
132
- task action, :roles => fetch(:app_roles, [:app]) do
133
- run "/etc/init.d/unicorn_#{application} #{action}"
134
- end
135
- end
136
- end
137
-
138
- # Ensure background jobs are stopped before running a migrations
139
- before "deploy:migrate", "bg:stop"
140
- # Ensure background jobs are stopped before symlinking (as part of a normal deploy)
141
- before "deploy:create_symlink", "bg:stop"
142
- # Restart background jobs after the app is restarted
143
- after "deploy:restart", "bg:restart"
144
-
145
- namespace :bg do
146
- %w(start stop restart).each do |action|
147
- desc "#{action} the delayed_job processes"
148
- task action, :roles => fetch(:bg_roles, [:bg]) do
149
- begin
150
- run "sv #{action} `cd /etc/service; ls -d dj_*`"
151
- rescue Capistrano::CommandError
152
- if tolerate_slow_bg
153
- logger.info "Some bg workers did not #{action} quickly, but will #{action} when the current job finishes."
154
- logger.info "Consider running with '-s tolerate_slow_bg=false'"
155
- else
156
- raise $!
157
- end
158
- end
159
- end
160
-
125
+ after "deploy:restart", "deploy:restart_rails_services"
126
+ namespace :deploy do
127
+ desc "restarts all rails services concurrently"
128
+ task :restart_rails_services, :roles => [:app, :search, :bg] do
129
+ run "/etc/init.d/rails_services restart"
161
130
  end
162
131
  end
163
132
  end
@@ -1,6 +1,6 @@
1
1
  class HiveQueen
2
2
  class Version
3
- @@version = '4.0.0'
3
+ @@version = '5.0.0'
4
4
 
5
5
  def self.to_s
6
6
  @@version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-hivequeen
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 5.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-10 00:00:00.000000000 Z
12
+ date: 2013-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -101,3 +101,4 @@ signing_key:
101
101
  specification_version: 2
102
102
  summary: Capistrano extensions for interacting with HiveQueen
103
103
  test_files: []
104
+ has_rdoc: