capistrano-runit 1.1.1 → 1.1.2

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.2 2011-11-05
2
+
3
+ * Added double quotes for environment variables values.
4
+
1
5
  === 1.1.1 2011-11-05
2
6
 
3
7
  * default_environment hash was added in templates (special usefull for rbenv).
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "capistrano-runit"
3
- s.version = "1.1.1"
3
+ s.version = "1.1.2"
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
- <%= 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
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
- <%= 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 %>
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
- <%= fetch(:default_environment, {}).map { |k, v| "#{k}='#{v}'" }.join(" ") %> <%= 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: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 1
10
- version: 1.1.1
9
+ - 2
10
+ version: 1.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Anton Ageev