foreman 0.71.0 → 0.73.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foreman/export/upstart.rb +17 -3
- data/lib/foreman/version.rb +1 -1
- data/man/foreman.1 +14 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 326f68222def21a4fbc9213a332d2d5c03f4c36b
|
4
|
+
data.tar.gz: bddb6d0f04d28a96a56b66a6044d434ef9a81ea2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c00e5ccaaf5dc9499d1a22354893398a2df3b5165014b257fb68a31bf808be804dc2a7981e346cb80cb9a5e6c695e239f722c6e784498bd85b8de6e3bbac3db
|
7
|
+
data.tar.gz: d88b62a20d29cc42e23c20442713ac295702fe6f366d5b559aa2acc3ffdc7dacf322f3c3094bfbbebd343dba64943b52bc53d7bfa2c9dba40ebbbd3b1a5d4af2
|
@@ -10,16 +10,30 @@ class Foreman::Export::Upstart < Foreman::Export::Base
|
|
10
10
|
clean file
|
11
11
|
end
|
12
12
|
|
13
|
-
write_template
|
13
|
+
write_template master_template, "#{app}.conf", binding
|
14
14
|
|
15
15
|
engine.each_process do |name, process|
|
16
16
|
next if engine.formation[name] < 1
|
17
|
-
write_template
|
17
|
+
write_template process_master_template, "#{app}-#{name}.conf", binding
|
18
18
|
|
19
19
|
1.upto(engine.formation[name]) do |num|
|
20
20
|
port = engine.port_for(process, num)
|
21
|
-
write_template
|
21
|
+
write_template process_template, "#{app}-#{name}-#{num}.conf", binding
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
def master_template
|
29
|
+
"upstart/master.conf.erb"
|
30
|
+
end
|
31
|
+
|
32
|
+
def process_master_template
|
33
|
+
"upstart/process_master.conf.erb"
|
34
|
+
end
|
35
|
+
|
36
|
+
def process_template
|
37
|
+
"upstart/process.conf.erb"
|
38
|
+
end
|
25
39
|
end
|
data/lib/foreman/version.rb
CHANGED
data/man/foreman.1
CHANGED
@@ -1,7 +1,7 @@
|
|
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" "June 2014" "Foreman 0.
|
4
|
+
.TH "FOREMAN" "1" "June 2014" "Foreman 0.73.0" "Foreman Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBforeman\fR \- manage Procfile\-based applications
|
@@ -257,5 +257,18 @@ $ foreman start alpha \-f ~/myapp/Procfile
|
|
257
257
|
.
|
258
258
|
.IP "" 0
|
259
259
|
.
|
260
|
+
.P
|
261
|
+
Start all processes except the one named worker:
|
262
|
+
.
|
263
|
+
.IP "" 4
|
264
|
+
.
|
265
|
+
.nf
|
266
|
+
|
267
|
+
$ foreman start \-c all=1,worker=0
|
268
|
+
.
|
269
|
+
.fi
|
270
|
+
.
|
271
|
+
.IP "" 0
|
272
|
+
.
|
260
273
|
.SH "COPYRIGHT"
|
261
274
|
Foreman is Copyright (C) 2010 David Dollar \fIhttp://daviddollar\.org\fR
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.73.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Dollar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|