factorylabs-fdlcap 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
data/fdlcap.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{fdlcap}
5
- s.version = "0.2.3"
5
+ s.version = "0.2.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Factory Design Labs"]
@@ -1,16 +1,22 @@
1
1
  Capistrano::Configuration.instance(:must_exist).load do
2
- namespace :delayed_job do
3
- desc "Start delayed_job"
4
- task :start, :only => {:delayed_job => true} do
5
- sudo "/usr/bin/monit start all -g dj_#{application}"
2
+ define_recipe :delayed_job do
3
+ namespace :delayed_job do
4
+ desc "Start delayed_job"
5
+ task :start, :only => {:delayed_job => true} do
6
+ sudo "/usr/bin/monit start all -g dj_#{application}"
7
+ end
8
+ desc "Stop delayed_job"
9
+ task :stop, :only => {:delayed_job => true} do
10
+ sudo "/usr/bin/monit stop all -g dj_#{application}"
11
+ end
12
+ desc "Restart delayed_job"
13
+ task :restart, :only => {:delayed_job => true} do
14
+ sudo "/usr/bin/monit restart all -g dj_#{application}"
15
+ end
6
16
  end
7
- desc "Stop delayed_job"
8
- task :stop, :only => {:delayed_job => true} do
9
- sudo "/usr/bin/monit stop all -g dj_#{application}"
10
- end
11
- desc "Restart delayed_job"
12
- task :restart, :only => {:delayed_job => true} do
13
- sudo "/usr/bin/monit restart all -g dj_#{application}"
14
- end
17
+
18
+ after "deploy:restart", "delayed_job:restart"
19
+ after "deploy:start", "delayed_job:start"
20
+ after "deploy:stop", "delayed_job:stop"
15
21
  end
16
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factorylabs-fdlcap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Factory Design Labs