procman 1.9.4 → 1.9.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d04136e7149a99764ced81a2aa1902fc9ea3524a
4
- data.tar.gz: b2a09927eba593824420524a36c086fdb3ce57bd
3
+ metadata.gz: 98b91748689205912e77579c8763b8f2d0043b44
4
+ data.tar.gz: 067257c2626a7c771e1237ecc7973a90a49d103b
5
5
  SHA512:
6
- metadata.gz: e5410e399ad3550393255e2236e9cafd2e163f52b239f017804994cc81b7a106ad1051208d0980a450276923fc143a63d9252589723ceea55b447dc00a1d8302
7
- data.tar.gz: bc918d90a08f920b2ac238eb74eb3408b7f2936c590aab26b26bb126117cdae60e3ead7ee2d039e52a879d2d5a3816ecd6f240b69c3601c2360300bd88b2a28a
6
+ metadata.gz: 668dff33c1a46a1783238a6f25fb55c421a6c24bd826c73286b1ac044dc33e82c56a829e74ba8d50a0a2e3f7d102bfb131f4602897979325fc298829eaf357f3
7
+ data.tar.gz: 304e27ea8c2413aa9d2de0f23a63fe8e726b6c6eb2fb166ee48e0ee699cc772a961c0b30e93f150baef7e761f405344bf597613558e10869a5afd05c6370665c
@@ -4,7 +4,7 @@ require 'proc_man/constraint'
4
4
 
5
5
  module ProcMan
6
6
 
7
- VERSION = '1.9.4'
7
+ VERSION = '1.9.5'
8
8
 
9
9
  class Error < StandardError; end
10
10
 
@@ -26,7 +26,7 @@ module ProcMan
26
26
 
27
27
  # Returns the current root directory path
28
28
  def root
29
- @root ||= self.options[:root] || self.options[:r] || File.expand_path('./')
29
+ self.options[:root] || self.options[:r] || File.expand_path('./')
30
30
  end
31
31
 
32
32
  ## Returns the current hostname of the machine executing this action
@@ -94,8 +94,8 @@ module ProcMan
94
94
  options[:name] ||= 'unicorn'
95
95
  options[:config_file] ||= "config/#{options[:name]}.rb"
96
96
  options[:pid_path] ||= "log/#{options[:name]}.pid"
97
- options[:rackup_file] ||= "#{root}/config.ru"
98
- start { run("bundle exec #{options[:name]} -D -E #{environment} -c #{root}/#{options[:config_file]} #{options[:rackup_file]}") }
97
+ options[:rackup_file] ||= "config.ru"
98
+ start { run("bundle exec #{options[:name]} -D -E #{environment} -c #{root}/#{options[:config_file]} #{root}/#{options[:rackup_file]}") }
99
99
  stop { run("kill `cat #{root}/#{options[:pid_path]}`") if File.exist?(options[:pid_path]) }
100
100
  restart { run("kill -USR2 `cat #{root}/#{options[:pid_path]}`") if File.exist?(options[:pid_path]) }
101
101
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: procman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.4
4
+ version: 1.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke
@@ -29,6 +29,7 @@ files:
29
29
  - lib/proc_man/process.rb
30
30
  - lib/proc_man/procfile.rb
31
31
  - lib/procman/capistrano.rb
32
+ - procman-1.9.4.gem
32
33
  - procman.gemspec
33
34
  homepage: http://atechmedia.com
34
35
  licenses: []