foreman 0.21.0 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +20 -1
- data/data/example/Procfile +2 -2
- data/data/example/error +2 -0
- data/data/example/ticker +3 -1
- data/lib/foreman/distribution.rb +9 -0
- data/lib/foreman/engine.rb +2 -2
- data/lib/foreman/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +13 -84
- data/bin/foreman-runner +0 -2
data/README.markdown
CHANGED
@@ -2,8 +2,18 @@
|
|
2
2
|
|
3
3
|
## Installation
|
4
4
|
|
5
|
+
* Rubygems
|
6
|
+
|
5
7
|
gem install foreman
|
6
8
|
|
9
|
+
* OSX
|
10
|
+
|
11
|
+
http://assets.foreman.io/foreman/foreman.pkg
|
12
|
+
|
13
|
+
* Standalone Tarball
|
14
|
+
|
15
|
+
http://assets.foreman.io/foreman/foreman.tgz
|
16
|
+
|
7
17
|
## Description
|
8
18
|
|
9
19
|
http://blog.daviddollar.org/2011/05/06/introducing-foreman.html
|
@@ -19,11 +29,20 @@ Created by David Dollar
|
|
19
29
|
Patches contributed by:
|
20
30
|
|
21
31
|
* Adam Wiggins
|
22
|
-
* clifff
|
23
32
|
* Dan Peterson
|
33
|
+
* Hunter Nield
|
24
34
|
* Jay Zeschin
|
25
35
|
* Keith Rarick
|
36
|
+
* Khaja Minhajuddin
|
37
|
+
* Matt Haynes
|
38
|
+
* Michael van Rooijen
|
39
|
+
* Mike Javorski
|
40
|
+
* Nathan L Smith
|
41
|
+
* Nick Zadrozny
|
26
42
|
* Ricardo Chimal, Jr
|
43
|
+
* Thom May
|
44
|
+
* clifff
|
45
|
+
* Greg Reinacker
|
27
46
|
|
28
47
|
## License
|
29
48
|
|
data/data/example/Procfile
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
ticker: ./ticker $PORT
|
2
|
-
error : ./error
|
1
|
+
ticker: ruby ./ticker $PORT
|
2
|
+
error : ruby ./error
|
data/data/example/error
CHANGED
data/data/example/ticker
CHANGED
data/lib/foreman/engine.rb
CHANGED
@@ -30,7 +30,7 @@ class Foreman::Engine
|
|
30
30
|
@order = []
|
31
31
|
procfile.split("\n").inject({}) do |hash, line|
|
32
32
|
next hash if line.strip == ""
|
33
|
-
name, command = line.split(
|
33
|
+
name, command = line.split(/\s*:\s+/, 2)
|
34
34
|
unless command
|
35
35
|
warn_deprecated_procfile!
|
36
36
|
name, command = line.split(/ +/, 2)
|
@@ -113,7 +113,7 @@ private ######################################################################
|
|
113
113
|
|
114
114
|
begin
|
115
115
|
Dir.chdir directory do
|
116
|
-
PTY.spawn(
|
116
|
+
PTY.spawn(process.command) do |stdin, stdout, pid|
|
117
117
|
trap("SIGTERM") { Process.kill("SIGTERM", pid) }
|
118
118
|
until stdin.eof?
|
119
119
|
info stdin.gets, process
|
data/lib/foreman/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-09-
|
12
|
+
date: 2011-09-13 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: term-ansicolor
|
16
|
-
requirement: &
|
16
|
+
requirement: &70170664697220 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.0.5
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70170664697220
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: thor
|
27
|
-
requirement: &
|
27
|
+
requirement: &70170664696420 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,84 +32,7 @@ dependencies:
|
|
32
32
|
version: 0.13.6
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: parka
|
38
|
-
requirement: &70144026257860 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - ! '>='
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: '0'
|
44
|
-
type: :development
|
45
|
-
prerelease: false
|
46
|
-
version_requirements: *70144026257860
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: rake
|
49
|
-
requirement: &70144026257080 !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
|
-
requirements:
|
52
|
-
- - ! '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
type: :development
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: *70144026257080
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
name: ronn
|
60
|
-
requirement: &70144026256460 !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
|
-
requirements:
|
63
|
-
- - ! '>='
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
version: '0'
|
66
|
-
type: :development
|
67
|
-
prerelease: false
|
68
|
-
version_requirements: *70144026256460
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: fakefs
|
71
|
-
requirement: &70144026255820 !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
|
-
requirements:
|
74
|
-
- - ~>
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: 0.2.1
|
77
|
-
type: :development
|
78
|
-
prerelease: false
|
79
|
-
version_requirements: *70144026255820
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: rcov
|
82
|
-
requirement: &70144026255120 !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
|
-
requirements:
|
85
|
-
- - ~>
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version: 0.9.8
|
88
|
-
type: :development
|
89
|
-
prerelease: false
|
90
|
-
version_requirements: *70144026255120
|
91
|
-
- !ruby/object:Gem::Dependency
|
92
|
-
name: rr
|
93
|
-
requirement: &70144026254400 !ruby/object:Gem::Requirement
|
94
|
-
none: false
|
95
|
-
requirements:
|
96
|
-
- - ~>
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
version: 1.0.2
|
99
|
-
type: :development
|
100
|
-
prerelease: false
|
101
|
-
version_requirements: *70144026254400
|
102
|
-
- !ruby/object:Gem::Dependency
|
103
|
-
name: rspec
|
104
|
-
requirement: &70144026253300 !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ~>
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: 2.6.0
|
110
|
-
type: :development
|
111
|
-
prerelease: false
|
112
|
-
version_requirements: *70144026253300
|
35
|
+
version_requirements: *70170664696420
|
113
36
|
description: Process manager for applications with multiple components
|
114
37
|
email: ddollar@gmail.com
|
115
38
|
executables:
|
@@ -118,7 +41,6 @@ extensions: []
|
|
118
41
|
extra_rdoc_files: []
|
119
42
|
files:
|
120
43
|
- bin/foreman
|
121
|
-
- bin/foreman-runner
|
122
44
|
- data/example/error
|
123
45
|
- data/example/log/neverdie.log
|
124
46
|
- data/example/Procfile
|
@@ -129,6 +51,7 @@ files:
|
|
129
51
|
- data/export/upstart/process.conf.erb
|
130
52
|
- data/export/upstart/process_master.conf.erb
|
131
53
|
- lib/foreman/cli.rb
|
54
|
+
- lib/foreman/distribution.rb
|
132
55
|
- lib/foreman/engine.rb
|
133
56
|
- lib/foreman/export/base.rb
|
134
57
|
- lib/foreman/export/bluepill.rb
|
@@ -168,12 +91,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
168
91
|
- - ! '>='
|
169
92
|
- !ruby/object:Gem::Version
|
170
93
|
version: '0'
|
94
|
+
segments:
|
95
|
+
- 0
|
96
|
+
hash: -2668075272993756722
|
171
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
98
|
none: false
|
173
99
|
requirements:
|
174
100
|
- - ! '>='
|
175
101
|
- !ruby/object:Gem::Version
|
176
102
|
version: '0'
|
103
|
+
segments:
|
104
|
+
- 0
|
105
|
+
hash: -2668075272993756722
|
177
106
|
requirements: []
|
178
107
|
rubyforge_project:
|
179
108
|
rubygems_version: 1.8.10
|
data/bin/foreman-runner
DELETED