capobvious 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,8 +68,10 @@ Capistrano::Configuration.instance.load do
68
68
  end
69
69
 
70
70
  if gem_use?('delayed_job')
71
- logger.important("delayed_job set to true")
72
- set :delayed_job, true
71
+ unless exists?(:delayed_job)
72
+ logger.important("delayed_job set to true")
73
+ set :delayed_job, true
74
+ end
73
75
  end
74
76
 
75
77
  #after "deploy:symlink", "auto:run"
@@ -78,6 +80,7 @@ Capistrano::Configuration.instance.load do
78
80
  # load 'deploy/assets'
79
81
 
80
82
  after 'deploy:update_code', 'bundle:install'
83
+ after "deploy:update", "deploy:cleanup"
81
84
 
82
85
 
83
86
  if !exists?(:assets) || fetch(:assets) == true
@@ -118,6 +121,10 @@ Capistrano::Configuration.instance.load do
118
121
  logger.important 'Restarting delayed_job process'
119
122
  run "cd #{current_path}; RAILS_ENV=#{rails_env} script/delayed_job restart"
120
123
  end
124
+ desc 'Stop the delayed_job process'
125
+ task :stop, :roles => :app do
126
+ run "cd #{current_path} && RAILS_ENV=#{rails_env} script/delayed_job stop"
127
+ end
121
128
  end
122
129
 
123
130
  after "deploy:update_code", "create:dbconf"
@@ -1,3 +1,3 @@
1
1
  module Capobvious
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capobvious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
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: 2012-08-24 00:00:00.000000000 Z
12
+ date: 2012-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano