daddy 0.3.28 → 0.3.29

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37fe86d40f2eca316456d3138a883de98c7345da
4
- data.tar.gz: e000efb6059bdd26b0a593469ee9034a2fafcb38
3
+ metadata.gz: adf36c1695d2b7697cfd3aaeeb477cab43e88932
4
+ data.tar.gz: 4838ac64ba842c91ecf009bc50762aad2c3cdd0f
5
5
  SHA512:
6
- metadata.gz: e29e0872c6f7e00e03fe63a540cdbc9416dbed0073a58da5bcb6bf67debea7e4091e41853d10b5f3181913a5b9b5a4fdf14a27a26597dd82af2ef7e5a1d0ed65
7
- data.tar.gz: 46e9a63d5d4c51ee212da4bec0f5eaca289183e6380958a30b859083ebb4b1eee13e06ad5d533d6a84f051d1b1fba3c3a9d7e11883ef8acbd73bfd31ed9a61c5
6
+ metadata.gz: 50908c252c73b57e76de93318e3732bd136b60041b6d669d040f41df832986e0d36dc057d56ac284d29e11d4fd26848461f9cdf7dbde57d374325ca44db20899
7
+ data.tar.gz: 4a763e15e87d99b6143cb5b7628ba158c2a6fa625717bda1645fe233ca1f977f30a77cc8f2362f65410a84bf365886b59b2e7a3a49e37700f92e324ed8e7ee09
data/lib/daddy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Daddy
2
- VERSION = '0.3.28'.freeze
2
+ VERSION = '0.3.29'.freeze
3
3
  end
@@ -3,11 +3,11 @@ require 'erb'
3
3
  require 'yaml'
4
4
 
5
5
  def self.rails_root
6
- ENV['RAILS_ROOT'] || Rails.root
6
+ ENV['RAILS_ROOT'] || @_rails_root ||= ask('RAILS_ROOT', :default => Rails.root)
7
7
  end
8
8
 
9
9
  def self.rails_env
10
- ENV['RAILS_ENV'] || 'development'
10
+ ENV['RAILS_ENV'] || @_rails_env ||= ask('RAILS_ENV', :default => 'development')
11
11
  end
12
12
 
13
13
  def self.app_name
@@ -6,8 +6,8 @@
6
6
  . /etc/rc.d/init.d/functions
7
7
 
8
8
  RAILS_USER=<%= ENV['USER'] %>
9
- RAILS_ENV=<%= ENV['RAILS_ENV'] || 'development' %>
10
- RAILS_ROOT=<%= ENV['RAILS_ROOT'] || Rails.root %>
9
+ RAILS_ENV=<%= rails_env %>
10
+ RAILS_ROOT=<%= rails_root %>
11
11
 
12
12
  PID=${RAILS_ROOT}/tmp/pids/unicorn.pid
13
13
  CONFIG=${RAILS_ROOT}/config/unicorn.rb
@@ -15,7 +15,7 @@ CONFIG=${RAILS_ROOT}/config/unicorn.rb
15
15
  export PATH="${PATH}":/usr/local/bin
16
16
 
17
17
  start() {
18
- daemon --user=${RAILS_USER} --pidfile=$PID bundle exec unicorn -c ${CONFIG} -E ${RAILS_ENV} -D
18
+ daemon --user=${RAILS_USER} --pidfile=$PID bundle exec unicorn_rails -c ${CONFIG} -E ${RAILS_ENV} -D
19
19
  }
20
20
 
21
21
  stop() {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.28
4
+ version: 0.3.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-28 00:00:00.000000000 Z
11
+ date: 2015-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara