procman 1.9.0 → 1.9.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 886e48b01bf0891b7c2e8f831e121b87cbf1ad8a
4
+ data.tar.gz: 34bf429ede05eda145aa92801ec871197ba8eef3
5
+ SHA512:
6
+ metadata.gz: 459b783ef37008913693d201d8683c4003e4a45e63d222376be05a543d9191d305a531ffe50aa23c6cfb1b5508d0bdfdd71844a4828495e99b249627ce22a298
7
+ data.tar.gz: 1e9e39995417f1cf56025a80a817a51844b91b00a27967b1db7841e5153f9fc56b896665b3ecc3b585eb77cdc0364ce97e187b729f6b3a5f07a3a54ecacd3803
@@ -4,7 +4,7 @@ require 'proc_man/constraint'
4
4
 
5
5
  module ProcMan
6
6
 
7
- VERSION = '1.9.0'
7
+ VERSION = '1.9.1'
8
8
 
9
9
  class Error < StandardError; end
10
10
 
@@ -28,11 +28,12 @@ module ProcMan
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
31
+ ENV["PROCMAN_ENABLED"] = 'yes'
31
32
  for process in self.processes
32
33
  process.options = options
33
34
  if process.defined_method?(method)
34
35
  if process.execute?
35
- puts "\e[33m#{method.capitalize}ing #{process.name}\e[0m"
36
+ puts "----> \e[33m#{method.capitalize}ing #{process.name}\e[0m"
36
37
  process.send(method)
37
38
  end
38
39
  else
@@ -72,7 +72,7 @@ module ProcMan
72
72
  end
73
73
 
74
74
  def run(command)
75
- puts " -----> #{command}"
75
+ puts " \e[36m#{command}\e[0m"
76
76
  system(command)
77
77
  end
78
78
 
@@ -84,11 +84,12 @@ module ProcMan
84
84
  restart { run("rbg restart -c #{root}/#{options[:config_file]} -E #{environment}") }
85
85
  end
86
86
 
87
- # A shortcut method for defining a unicorn
87
+ # A shortcut method for defining a unicorn-like process
88
88
  def unicorn(options = {})
89
- options[:config_file] ||= "config/unicorn.rb"
90
- options[:pid_path] ||= "log/unicorn.pid"
91
- start { run("bundle exec unicorn -D -E #{environment} -c #{root}/#{options[:config_file]}") }
89
+ options[:name] ||= 'unicorn'
90
+ options[:config_file] ||= "config/#{options[:name]}.rb"
91
+ options[:pid_path] ||= "log/#{options[:name]}.pid"
92
+ start { run("bundle exec #{options[:name]} -D -E #{environment} -c #{root}/#{options[:config_file]}") }
92
93
  stop { run("kill `cat #{root}/#{options[:pid_path]}`") if File.exist?(options[:pid_path]) }
93
94
  restart { run("kill -USR2 `cat #{root}/#{options[:pid_path]}`") if File.exist?(options[:pid_path]) }
94
95
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: procman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
5
- prerelease:
4
+ version: 1.9.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Adam Cooke
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-06-06 00:00:00.000000000 Z
11
+ date: 2014-10-22 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: A very very simple library for starting/stopping/restarting processes
15
14
  for a Ruby application
@@ -19,41 +18,40 @@ executables:
19
18
  extensions: []
20
19
  extra_rdoc_files: []
21
20
  files:
21
+ - LICENCE
22
+ - Procfile.template
23
+ - README.md
22
24
  - bin/procman
25
+ - lib/proc_man.rb
23
26
  - lib/proc_man/capistrano.rb
24
27
  - lib/proc_man/capistrano3.rb
25
28
  - lib/proc_man/constraint.rb
26
29
  - lib/proc_man/process.rb
27
30
  - lib/proc_man/procfile.rb
28
- - lib/proc_man.rb
29
31
  - lib/procman/capistrano.rb
30
- - LICENCE
31
- - Procfile.template
32
32
  - procman.gemspec
33
- - README.md
34
33
  homepage: http://atechmedia.com
35
34
  licenses: []
35
+ metadata: {}
36
36
  post_install_message:
37
37
  rdoc_options: []
38
38
  require_paths:
39
39
  - lib
40
40
  required_ruby_version: !ruby/object:Gem::Requirement
41
- none: false
42
41
  requirements:
43
- - - ! '>='
42
+ - - ">="
44
43
  - !ruby/object:Gem::Version
45
44
  version: '0'
46
45
  required_rubygems_version: !ruby/object:Gem::Requirement
47
- none: false
48
46
  requirements:
49
- - - ! '>='
47
+ - - ">="
50
48
  - !ruby/object:Gem::Version
51
49
  version: '0'
52
50
  requirements: []
53
51
  rubyforge_project:
54
- rubygems_version: 1.8.23.2
52
+ rubygems_version: 2.2.2
55
53
  signing_key:
56
- specification_version: 3
54
+ specification_version: 4
57
55
  summary: A very very simple library for starting/stopping/restarting processes for
58
56
  a Ruby application
59
57
  test_files: []