capistrano-runit 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.1.1 2011-11-05
2
+
3
+ * default_environment hash was added in templates (special usefull for rbenv).
4
+
1
5
  === 1.1.0 2011-10-23
2
6
 
3
7
  * Bugfixes.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "capistrano-runit"
3
- s.version = "1.1.0"
3
+ s.version = "1.1.1"
4
4
  s.summary = "Useful deployment recipes."
5
5
  s.homepage = "https://github.com/antage/capistrano-runit"
6
6
  s.author = "Anton Ageev"
@@ -1,3 +1,3 @@
1
1
  #!/bin/bash
2
2
  cd <%= current_path %>
3
- <%= runit_delayed_job_environment.map { |k, v| "#{k}='#{v}'" }.join(" ") %> exec <%= runit_delayed_job_command %> run
3
+ <%= fetch(:default_environment, {}).map { |k, v| "#{k}='#{v}'" }.join(" ") %> <%= runit_delayed_job_environment.map { |k, v| "#{k}='#{v}'" }.join(" ") %> exec <%= runit_delayed_job_command %> run
@@ -1,3 +1,3 @@
1
1
  #!/bin/bash
2
2
  cd <%= current_path %>
3
- QUEUE=<%= runit_resque_queue || "*" %> <%= runit_resque_environment.map { |k,v| "#{k}='#{v}'" }.join(" ") %> exec <%= runit_resque_command %>
3
+ <%= fetch(:default_environment, {}).map { |k, v| "#{k}='#{v}'" }.join(" ") %> QUEUE=<%= fetch(:runit_resque_queue, nil) || "*" %> <%= runit_resque_environment.map { |k, v| "#{k}='#{v}'" }.join(" ") %> exec <%= runit_resque_command %>
@@ -125,7 +125,7 @@ if [ ! $RUNNING ]; then
125
125
  echo "Starting unicorn"
126
126
  old=$(pwd)
127
127
  cd $APP_DIR
128
- <%= runit_unicorn_command %> -E production -c $THIS_DIR/unicorn.rb -D
128
+ <%= fetch(:default_environment, {}).map { |k, v| "#{k}='#{v}'" }.join(" ") %> <%= runit_unicorn_command %> -E production -c $THIS_DIR/unicorn.rb -D
129
129
  cd $old
130
130
  sleep 2
131
131
  CUR_PID=$(cat $CUR_PID_FILE)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-runit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 0
10
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Anton Ageev
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-23 00:00:00 +04:00
19
- default_executable:
18
+ date: 2011-11-05 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: capistrano
@@ -56,7 +55,6 @@ files:
56
55
  - lib/capistrano-runit/templates/run-delayed_job.erb
57
56
  - lib/capistrano-runit/templates/run-resque.erb
58
57
  - lib/capistrano-runit/templates/run-unicorn.erb
59
- has_rdoc: true
60
58
  homepage: https://github.com/antage/capistrano-runit
61
59
  licenses: []
62
60
 
@@ -86,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
84
  requirements: []
87
85
 
88
86
  rubyforge_project:
89
- rubygems_version: 1.6.2
87
+ rubygems_version: 1.7.2
90
88
  signing_key:
91
89
  specification_version: 3
92
90
  summary: Useful deployment recipes.