procman 1.4.0 → 1.4.1

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.
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.4.0'
7
+ VERSION = '1.4.1'
8
8
 
9
9
  class Error < StandardError; end
10
10
 
@@ -20,15 +20,15 @@ Capistrano::Configuration.instance(:must_exist).load do
20
20
  after 'deploy:restart', "procman:restart"
21
21
 
22
22
  def procman_command(command)
23
- command = "sh -c \"cd #{current_path} && bundle exec procman #{command} --environment #{fetch(:rails_env, 'production')}\""
23
+
24
+ procfile_path = fetch(:procfile_path, "./Procfile")
25
+ procfile = procfile_path ? " --procfile #{procfile_path}" : ''
26
+
27
+ command = "sh -c \"cd #{current_path} && bundle exec procman #{command} --environment #{fetch(:rails_env, 'production')} #{procfile}\""
24
28
  if user = fetch(:procman_user, nil)
25
29
  command = "sudo -u #{user} #{command}"
26
30
  end
27
31
 
28
- procfile_path = fetch(:procfile_path, "./Procfile")
29
- if procfile_path
30
- command << " --procfile #{procfile_path}"
31
- end
32
32
  command
33
33
  end
34
34
 
data/procman-1.4.0.gem ADDED
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.4.0
4
+ version: 1.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -27,6 +27,7 @@ files:
27
27
  - lib/proc_man.rb
28
28
  - LICENCE
29
29
  - Procfile.template
30
+ - procman-1.4.0.gem
30
31
  - procman.gemspec
31
32
  - README.md
32
33
  homepage: http://atechmedia.com