foreman 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/lib/foreman.rb +1 -1
  2. data/lib/foreman/engine.rb +1 -1
  3. data/man/foreman.1 +12 -16
  4. metadata +16 -30
data/lib/foreman.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Foreman
2
2
 
3
- VERSION = "0.9.1"
3
+ VERSION = "0.9.2"
4
4
 
5
5
  class AppDoesNotExist < Exception; end
6
6
 
@@ -69,7 +69,7 @@ class Foreman::Engine
69
69
 
70
70
  def port_for(process, num, base_port=nil)
71
71
  base_port ||= 5000
72
- offset = processes_in_order.map(&:first).index(process.name) * 100
72
+ offset = processes_in_order.map { |p| p.first }.index(process.name) * 100
73
73
  base_port.to_i + offset + num - 1
74
74
  end
75
75
 
data/man/foreman.1 CHANGED
@@ -1,10 +1,10 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "FOREMAN" "1" "October 2010" "Foreman 0.9.0.beta.1" "Foreman Manual"
4
+ .TH "FOREMAN" "1" "June 2010" "Foreman 0.6.0" "Foreman Manual"
5
5
  .
6
6
  .SH "NAME"
7
- \fBforeman\fR \- manage Psfile\-based applications
7
+ \fBforeman\fR \- manage Procfile\-based applications
8
8
  .
9
9
  .SH "SYNOPSIS"
10
10
  \fBforeman start [process]\fR
@@ -13,13 +13,13 @@
13
13
  \fBforeman export <format> [location]\fR
14
14
  .
15
15
  .SH "DESCRIPTION"
16
- \fBForeman\fR is a manager for Psfile\-based applications\. Its aim is to abstract away the details of the Psfile format, and allow you to either run your application directly or export it to some other process management format\.
16
+ \fBForeman\fR is a manager for Procfile\-based applications\. Its aim is to abstract away the details of the Procfile format, and allow you to either run your application directly or export it to some other process management format\.
17
17
  .
18
18
  .SH "RUNNING"
19
19
  \fBforeman start\fR is used to run your application directly from the command line\.
20
20
  .
21
21
  .P
22
- If no additional parameters are passed, foreman will run one instance of each type of process defined in your Psfile\.
22
+ If no additional parameters are passed, foreman will run one instance of each type of process defined in your Procfile\.
23
23
  .
24
24
  .P
25
25
  If a parameter is passed, foreman will run one instance of the specified application type\.
@@ -28,12 +28,8 @@ If a parameter is passed, foreman will run one instance of the specified applica
28
28
  The following options control how the application is run:
29
29
  .
30
30
  .TP
31
- \fB\-c\fR, \fB\-\-concurrency\fR
32
- Specify the number of each process type to run\. The value passed in should be in the format \fBprocess=num,process=num\fR
33
- .
34
- .TP
35
- \fB\-p\fR, \fB\-\-port\fR
36
- Specify which port to use as the base for this application\. Should be a multiple of 1000\.
31
+ \fB\-s\fR, \fB\-\-screen\fR
32
+ Run the application as a series of screen windows rather than interleaved in stdout\.
37
33
  .
38
34
  .SH "EXPORTING"
39
35
  \fBforeman export\fR is used to export your application to another process management format\.
@@ -68,8 +64,8 @@ Specify the user the application should be run as\. Defaults to the app name
68
64
  These options control all modes of foreman\'s operation\.
69
65
  .
70
66
  .TP
71
- \fB\-f\fR, \fB\-\-psfile\fR
72
- Specify an alternate location for the application\'s Psfile\. This file\'s containing directory will be assumed to be the root directory of the application\.
67
+ \fB\-f\fR, \fB\-\-procfile\fR
68
+ Specify an alternate location for the application\'s Procfile\. This file\'s containing directory will be assumed to be the root directory of the application\.
73
69
  .
74
70
  .SH "EXPORT FORMATS"
75
71
  foreman currently supports the following output formats:
@@ -110,8 +106,8 @@ Will create a series of upstart scripts in the location you specify\. Scripts wi
110
106
  .P
111
107
  \fBrestart appname\-processname\-3\fR
112
108
  .
113
- .SH "PSFILE"
114
- A Psfile should contain both a name for the process and the command used to run it\.
109
+ .SH "PROCFILE"
110
+ A Procfile should contain both a name for the process and the command used to run it\.
115
111
  .
116
112
  .IP "" 4
117
113
  .
@@ -151,13 +147,13 @@ $ foreman export upstart /etc/init
151
147
  .IP "" 0
152
148
  .
153
149
  .P
154
- Run one process type from the application defined in a specific Psfile:
150
+ Run one process type from the application defined in a specific Procfile:
155
151
  .
156
152
  .IP "" 4
157
153
  .
158
154
  .nf
159
155
 
160
- $ foreman start alpha \-p ~/myapp/Psfile
156
+ $ foreman start alpha \-p ~/app/Procfile
161
157
  .
162
158
  .fi
163
159
  .
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 9
9
- - 1
10
- version: 0.9.1
8
+ - 2
9
+ version: 0.9.2
11
10
  platform: ruby
12
11
  authors:
13
12
  - |
@@ -17,147 +16,136 @@ autorequire:
17
16
  bindir: bin
18
17
  cert_chain: []
19
18
 
20
- date: 2010-11-03 00:00:00 -07:00
19
+ date: 2010-11-09 00:00:00 -05:00
21
20
  default_executable:
22
21
  dependencies:
23
22
  - !ruby/object:Gem::Dependency
23
+ name: parka
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 3
30
29
  segments:
31
30
  - 0
32
31
  version: "0"
33
32
  type: :development
34
- name: parka
35
33
  prerelease: false
36
34
  version_requirements: *id001
37
35
  - !ruby/object:Gem::Dependency
36
+ name: rake
38
37
  requirement: &id002 !ruby/object:Gem::Requirement
39
38
  none: false
40
39
  requirements:
41
40
  - - ">="
42
41
  - !ruby/object:Gem::Version
43
- hash: 3
44
42
  segments:
45
43
  - 0
46
44
  version: "0"
47
45
  type: :development
48
- name: rake
49
46
  prerelease: false
50
47
  version_requirements: *id002
51
48
  - !ruby/object:Gem::Dependency
49
+ name: ronn
52
50
  requirement: &id003 !ruby/object:Gem::Requirement
53
51
  none: false
54
52
  requirements:
55
53
  - - ">="
56
54
  - !ruby/object:Gem::Version
57
- hash: 3
58
55
  segments:
59
56
  - 0
60
57
  version: "0"
61
58
  type: :development
62
- name: ronn
63
59
  prerelease: false
64
60
  version_requirements: *id003
65
61
  - !ruby/object:Gem::Dependency
62
+ name: fakefs
66
63
  requirement: &id004 !ruby/object:Gem::Requirement
67
64
  none: false
68
65
  requirements:
69
66
  - - ~>
70
67
  - !ruby/object:Gem::Version
71
- hash: 21
72
68
  segments:
73
69
  - 0
74
70
  - 2
75
71
  - 1
76
72
  version: 0.2.1
77
73
  type: :development
78
- name: fakefs
79
74
  prerelease: false
80
75
  version_requirements: *id004
81
76
  - !ruby/object:Gem::Dependency
77
+ name: rcov
82
78
  requirement: &id005 !ruby/object:Gem::Requirement
83
79
  none: false
84
80
  requirements:
85
81
  - - ~>
86
82
  - !ruby/object:Gem::Version
87
- hash: 43
88
83
  segments:
89
84
  - 0
90
85
  - 9
91
86
  - 8
92
87
  version: 0.9.8
93
88
  type: :development
94
- name: rcov
95
89
  prerelease: false
96
90
  version_requirements: *id005
97
91
  - !ruby/object:Gem::Dependency
92
+ name: rr
98
93
  requirement: &id006 !ruby/object:Gem::Requirement
99
94
  none: false
100
95
  requirements:
101
96
  - - ~>
102
97
  - !ruby/object:Gem::Version
103
- hash: 33
104
98
  segments:
99
+ - 1
105
100
  - 0
106
- - 10
107
- - 11
108
- version: 0.10.11
101
+ - 2
102
+ version: 1.0.2
109
103
  type: :development
110
- name: rr
111
104
  prerelease: false
112
105
  version_requirements: *id006
113
106
  - !ruby/object:Gem::Dependency
107
+ name: rspec
114
108
  requirement: &id007 !ruby/object:Gem::Requirement
115
109
  none: false
116
110
  requirements:
117
111
  - - ~>
118
112
  - !ruby/object:Gem::Version
119
- hash: 62196421
120
113
  segments:
121
114
  - 2
122
115
  - 0
123
116
  - 0
124
- - beta
125
- - 19
126
- version: 2.0.0.beta.19
117
+ version: 2.0.0
127
118
  type: :development
128
- name: rspec
129
119
  prerelease: false
130
120
  version_requirements: *id007
131
121
  - !ruby/object:Gem::Dependency
122
+ name: term-ansicolor
132
123
  requirement: &id008 !ruby/object:Gem::Requirement
133
124
  none: false
134
125
  requirements:
135
126
  - - ~>
136
127
  - !ruby/object:Gem::Version
137
- hash: 29
138
128
  segments:
139
129
  - 1
140
130
  - 0
141
131
  - 5
142
132
  version: 1.0.5
143
133
  type: :runtime
144
- name: term-ansicolor
145
134
  prerelease: false
146
135
  version_requirements: *id008
147
136
  - !ruby/object:Gem::Dependency
137
+ name: thor
148
138
  requirement: &id009 !ruby/object:Gem::Requirement
149
139
  none: false
150
140
  requirements:
151
141
  - - ~>
152
142
  - !ruby/object:Gem::Version
153
- hash: 39
154
143
  segments:
155
144
  - 0
156
145
  - 13
157
146
  - 6
158
147
  version: 0.13.6
159
148
  type: :runtime
160
- name: thor
161
149
  prerelease: false
162
150
  version_requirements: *id009
163
151
  description: Process manager for applications with multiple components
@@ -211,7 +199,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
211
199
  requirements:
212
200
  - - ">="
213
201
  - !ruby/object:Gem::Version
214
- hash: 3
215
202
  segments:
216
203
  - 0
217
204
  version: "0"
@@ -220,7 +207,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
207
  requirements:
221
208
  - - ">="
222
209
  - !ruby/object:Gem::Version
223
- hash: 3
224
210
  segments:
225
211
  - 0
226
212
  version: "0"