procman 1.3.2 → 1.4.0

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.
@@ -24,6 +24,11 @@ Capistrano::Configuration.instance(:must_exist).load do
24
24
  if user = fetch(:procman_user, nil)
25
25
  command = "sudo -u #{user} #{command}"
26
26
  end
27
+
28
+ procfile_path = fetch(:procfile_path, "./Procfile")
29
+ if procfile_path
30
+ command << " --procfile #{procfile_path}"
31
+ end
27
32
  command
28
33
  end
29
34
 
data/lib/proc_man.rb CHANGED
@@ -4,7 +4,7 @@ require 'proc_man/constraint'
4
4
 
5
5
  module ProcMan
6
6
 
7
- VERSION = '1.3.2'
7
+ VERSION = '1.4.0'
8
8
 
9
9
  class Error < StandardError; end
10
10
 
@@ -24,7 +24,7 @@ module ProcMan
24
24
  end
25
25
 
26
26
  def run(method, options = {})
27
- load_procfile(File.expand_path('./Procfile'))
27
+ load_procfile(options[:procfile] || File.expand_path('./Procfile'))
28
28
  if method.nil?
29
29
  raise Error, "Command to execute was not specified. For example, pass 'start' to start processes."
30
30
  else
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.3.2
4
+ version: 1.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-27 00:00:00.000000000 Z
12
+ date: 2013-03-28 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A very very simple library for starting/stopping/restarting processes
15
15
  for a Ruby application
@@ -27,8 +27,6 @@ files:
27
27
  - lib/proc_man.rb
28
28
  - LICENCE
29
29
  - Procfile.template
30
- - procman-1.3.0.gem
31
- - procman-1.3.1.gem
32
30
  - procman.gemspec
33
31
  - README.md
34
32
  homepage: http://atechmedia.com
data/procman-1.3.0.gem DELETED
Binary file
data/procman-1.3.1.gem DELETED
Binary file