capistrano-unicorn 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -42,12 +42,13 @@ cap unicorn:reload
42
42
 
43
43
  ## Configuration options
44
44
 
45
- - unicorn_env — Set unicorn environment. Default to "rails_env" variable.
46
- - unicorn_pid — Set unicorn PID file path. Default to "current_path/tmp/pids/unicorn.pid"
45
+ - ```unicorn_env``` - Set unicorn environment. Default to ```rails_env``` variable.
46
+ - ```unicorn_pid``` - Set unicorn PID file path. Default to ```current_path/tmp/pids/unicorn.pid```
47
+ - ```unicorn_bin``` - Set unicorn executable file. Default to ```unicorn```.
47
48
 
48
49
  ## License
49
50
 
50
- Copyright © 2011 Dan Sosedoff.
51
+ Copyright (c) 2011-2012 Dan Sosedoff.
51
52
 
52
53
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
53
54
 
@@ -23,6 +23,7 @@ module CapistranoUnicorn
23
23
  _cset(:unicorn_pid, "#{fetch(:current_path)}/tmp/pids/unicorn.pid")
24
24
  _cset(:app_env, (fetch(:rails_env) rescue 'production'))
25
25
  _cset(:unicorn_env, (fetch(:app_env)))
26
+ _cset(:unicorn_bin, "unicorn")
26
27
 
27
28
  namespace :unicorn do
28
29
  desc 'Start Unicorn'
@@ -39,7 +40,7 @@ module CapistranoUnicorn
39
40
  config_path = "#{current_path}/config/unicorn/#{unicorn_env}.rb"
40
41
  if remote_file_exists?(config_path)
41
42
  logger.important("Starting...", "Unicorn")
42
- run "cd #{current_path} && BUNDLE_GEMFILE=#{current_path}/Gemfile bundle exec unicorn -c #{config_path} -E #{app_env} -D"
43
+ run "cd #{current_path} && BUNDLE_GEMFILE=#{current_path}/Gemfile bundle exec #{unicorn_bin} -c #{config_path} -E #{app_env} -D"
43
44
  else
44
45
  logger.important("Config file for \"#{unicorn_env}\" environment was not found at \"#{config_path}\"", "Unicorn")
45
46
  end
@@ -84,7 +85,7 @@ module CapistranoUnicorn
84
85
  logger.important("No PIDs found. Starting Unicorn server...", "Unicorn")
85
86
  config_path = "#{current_path}/config/unicorn/#{unicorn_env}.rb"
86
87
  if remote_file_exists?(config_path)
87
- run "cd #{current_path} && BUNDLE_GEMFILE=#{current_path}/Gemfile bundle exec unicorn -c #{config_path} -E #{app_env} -D"
88
+ run "cd #{current_path} && BUNDLE_GEMFILE=#{current_path}/Gemfile bundle exec #{unicorn_bin} -c #{config_path} -E #{app_env} -D"
88
89
  else
89
90
  logger.important("Config file for \"#{unicorn_env}\" environment was not found at \"#{config_path}\"", "Unicorn")
90
91
  end
@@ -1,5 +1,5 @@
1
1
  module CapistranoUnicorn
2
2
  unless defined?(::CapistranoUnicorn::VERSION)
3
- VERSION = "0.1.5".freeze
3
+ VERSION = "0.1.6".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-unicorn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-04 00:00:00.000000000Z
12
+ date: 2012-02-23 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: &2165055020 !ruby/object:Gem::Requirement
16
+ requirement: &2166810460 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2165055020
24
+ version_requirements: *2166810460
25
25
  description: Capistrano plugin that integrates Unicorn server tasks.
26
26
  email: dan.sosedoff@gmail.com
27
27
  executables: []
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  version: '0'
58
58
  requirements: []
59
59
  rubyforge_project:
60
- rubygems_version: 1.8.10
60
+ rubygems_version: 1.8.15
61
61
  signing_key:
62
62
  specification_version: 3
63
63
  summary: Unicorn integration for Capistrano