app_maint 0.0.8 → 0.0.9

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.
@@ -1,3 +1,3 @@
1
1
  module AppMaint
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -1,5 +1,7 @@
1
1
  Capistrano::Configuration.instance.load do
2
2
  namespace :unicorn do
3
+ with_unicorn = (exists? :unicorn_workers) ? true : false
4
+
3
5
  desc "Setup Unicorn initializer and app configuration"
4
6
  task :setup, roles: :app do
5
7
  run "mkdir -p #{shared_path}/config"
@@ -9,14 +11,14 @@ Capistrano::Configuration.instance.load do
9
11
  run "#{sudo} mv /tmp/unicorn_init /etc/init.d/unicorn_#{application}"
10
12
  run "#{sudo} update-rc.d -f unicorn_#{application} defaults 1>/dev/null"
11
13
  end
12
- after "deploy:setup", "unicorn:setup"
14
+ after "deploy:setup", "unicorn:setup" if with_unicorn
13
15
 
14
16
  %w[start stop restart].each do |command|
15
17
  desc "#{command} unicorn"
16
18
  task command, roles: :app do
17
19
  run "service unicorn_#{application} #{command}"
18
20
  end
19
- after "deploy:#{command}", "unicorn:#{command}"
21
+ after "deploy:#{command}", "unicorn:#{command}" if with_unicorn
20
22
  end
21
23
  end
22
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_maint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
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-02-06 00:00:00.000000000 Z
12
+ date: 2013-02-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -110,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  segments:
112
112
  - 0
113
- hash: -2139927545633232113
113
+ hash: -4605339574701408258
114
114
  required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  none: false
116
116
  requirements:
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  segments:
121
121
  - 0
122
- hash: -2139927545633232113
122
+ hash: -4605339574701408258
123
123
  requirements: []
124
124
  rubyforge_project:
125
125
  rubygems_version: 1.8.23