procman 1.9.5 → 1.9.6

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: 98b91748689205912e77579c8763b8f2d0043b44
4
- data.tar.gz: 067257c2626a7c771e1237ecc7973a90a49d103b
3
+ metadata.gz: b1f7336d217adef5d1c8b3dd84ae33a66eec00d3
4
+ data.tar.gz: 3d545df96d975c8ac54b1d7de86fbf30f522afa5
5
5
  SHA512:
6
- metadata.gz: 668dff33c1a46a1783238a6f25fb55c421a6c24bd826c73286b1ac044dc33e82c56a829e74ba8d50a0a2e3f7d102bfb131f4602897979325fc298829eaf357f3
7
- data.tar.gz: 304e27ea8c2413aa9d2de0f23a63fe8e726b6c6eb2fb166ee48e0ee699cc772a961c0b30e93f150baef7e761f405344bf597613558e10869a5afd05c6370665c
6
+ metadata.gz: 508a6c354979a1fa3c596f4bb01afcebebf0ca6ca8aeef4a600f67776bd90aa988d210226a14df7b0dfc7533d6a6f6285591463d9496839e5def8991eb734679
7
+ data.tar.gz: 18978169ded185338d944fa154638d2b7145e6389067a0e7a9324eb01c3acc6a2455aa677c0061bacf5146e4dfc965ca7b04fc3df4b6bffa1d0815b76991c50f
@@ -4,7 +4,7 @@ require 'proc_man/constraint'
4
4
 
5
5
  module ProcMan
6
6
 
7
- VERSION = '1.9.5'
7
+ VERSION = '1.9.6'
8
8
 
9
9
  class Error < StandardError; end
10
10
 
@@ -12,7 +12,7 @@ module ProcMan
12
12
 
13
13
  def load_procfile(path)
14
14
  if File.file?(path)
15
- ProcMan::Procfile.class_eval(File.read(path))
15
+ ProcMan::Procfile.class_eval(File.read(path), path)
16
16
  puts "\e[35mProcfile loaded from #{path}\e[0m"
17
17
  else
18
18
  raise Error, "Procfile not found at #{path}"
@@ -95,9 +95,14 @@ module ProcMan
95
95
  options[:config_file] ||= "config/#{options[:name]}.rb"
96
96
  options[:pid_path] ||= "log/#{options[:name]}.pid"
97
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
- stop { run("kill `cat #{root}/#{options[:pid_path]}`") if File.exist?(options[:pid_path]) }
100
- restart { run("kill -USR2 `cat #{root}/#{options[:pid_path]}`") if File.exist?(options[:pid_path]) }
98
+
99
+ pid_path = options[:pid_path][0,1] == "/" ? options[:pid_path] : "#{root}/#{options[:pid_path]}"
100
+ config_file = options[:config_file][0,1] == "/" ? options[:config_file] : "#{root}/#{options[:config_file]}"
101
+ rackup_file = options[:rackup_file][0,1] == "/" ? options[:rackup_file] : "#{root}/#{options[:rackup_file]}"
102
+
103
+ start { run("bundle exec #{options[:name]} -D -E #{environment} -c #{config_file} #{rackup_file}") }
104
+ stop { run("kill `cat #{pid_path}`") if File.exist?(pid_path) }
105
+ restart { run("kill -USR2 `cat #{pid_path}`") if File.exist?(pid_path) }
101
106
  end
102
107
 
103
108
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: procman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.5
4
+ version: 1.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-10 00:00:00.000000000 Z
11
+ date: 2015-07-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A very very simple library for starting/stopping/restarting processes
14
14
  for a Ruby application
@@ -29,7 +29,6 @@ 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
33
32
  - procman.gemspec
34
33
  homepage: http://atechmedia.com
35
34
  licenses: []
@@ -50,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
50
49
  version: '0'
51
50
  requirements: []
52
51
  rubyforge_project:
53
- rubygems_version: 2.2.2
52
+ rubygems_version: 2.4.5
54
53
  signing_key:
55
54
  specification_version: 4
56
55
  summary: A very very simple library for starting/stopping/restarting processes for
Binary file