procman 1.6.4 → 1.7.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.
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.6.4'
7
+ VERSION = '1.7.0'
8
8
 
9
9
  class Error < StandardError; end
10
10
 
@@ -74,17 +74,16 @@ module ProcMan
74
74
  # A shortcut method for defining a set of RBG processes
75
75
  def rbg(options = {})
76
76
  options[:config_file] ||= "Rbgfile"
77
- options[:environment] ||= "production"
78
- start { system("bundle exec rbg start -c #{root}/#{options[:config_file]} -E #{options[:environment]}") }
79
- stop { system("bundle exec rbg stop -c #{root}/#{options[:config_file]} -E #{options[:environment]}") }
80
- restart { system("bundle exec rbg restart -c #{root}/#{options[:config_file]} -E #{options[:environment]}") }
77
+ start { system("bundle exec rbg start -c #{root}/#{options[:config_file]} -E #{environment}") }
78
+ stop { system("bundle exec rbg stop -c #{root}/#{options[:config_file]} -E #{environment}") }
79
+ restart { system("bundle exec rbg restart -c #{root}/#{options[:config_file]} -E #{environment}") }
81
80
  end
82
81
 
83
82
  # A shortcut method for defining a unicorn
84
83
  def unicorn(options = {})
85
- options[:config_file] ||= "config/unicorn.rb"
86
- options[:pid_path] ||= "log/unicorn.pid"
87
- start { system("bundle exec unicorn -D -c #{root}/#{options[:config_file]}") }
84
+ options[:config_file] ||= "config/unicorn.rb"
85
+ options[:pid_path] ||= "log/unicorn.pid"
86
+ start { system("bundle exec unicorn -D -E #{environment} -c #{root}/#{options[:config_file]}") }
88
87
  stop { system("kill `cat #{root}/#{options[:pid_path]}`") if File.exist?(options[:pid_path]) }
89
88
  restart { system("kill -USR2 `cat #{root}/#{options[:pid_path]}`") if File.exist?(options[:pid_path]) }
90
89
  end
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.6.4
4
+ version: 1.7.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: 2014-02-10 00:00:00.000000000 Z
12
+ date: 2014-02-21 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
@@ -28,8 +28,6 @@ files:
28
28
  - lib/procman/capistrano.rb
29
29
  - LICENCE
30
30
  - Procfile.template
31
- - procman-1.6.2.gem
32
- - procman-1.6.3.gem
33
31
  - procman.gemspec
34
32
  - README.md
35
33
  homepage: http://atechmedia.com
data/procman-1.6.2.gem DELETED
Binary file
data/procman-1.6.3.gem DELETED
Binary file