foreman 0.11.0 → 0.11.1

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/cli.rb +7 -2
  3. data/man/foreman.1 +15 -1
  4. metadata +45 -45
data/lib/foreman.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Foreman
2
2
 
3
- VERSION = "0.11.0"
3
+ VERSION = "0.11.1"
4
4
 
5
5
  class AppDoesNotExist < Exception; end
6
6
 
data/lib/foreman/cli.rb CHANGED
@@ -70,8 +70,6 @@ private ######################################################################
70
70
  options[:procfile] || "Procfile"
71
71
  end
72
72
 
73
- private ######################################################################
74
-
75
73
  def display(message)
76
74
  puts message
77
75
  end
@@ -85,4 +83,11 @@ private ######################################################################
85
83
  File.exist?(procfile)
86
84
  end
87
85
 
86
+ def options
87
+ original_options = super
88
+ return original_options unless File.exists?(".foreman")
89
+ defaults = YAML::load_file(".foreman")
90
+ Thor::CoreExt::HashWithIndifferentAccess.new(defaults.merge(original_options))
91
+ end
92
+
88
93
  end
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" "January 2011" "Foreman 0.10.1" "Foreman Manual"
4
+ .TH "FOREMAN" "1" "March 2011" "Foreman 0.11.0" "Foreman Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBforeman\fR \- manage Procfile\-based applications
@@ -153,6 +153,20 @@ $ foreman check
153
153
  .
154
154
  .IP "" 0
155
155
  .
156
+ .SH "DEFAULT OPTIONS"
157
+ If a \fB\.foreman\fR file exists in the current directory, default options will be read from it\. This file should be in YAML format with the long option name as keys\. Example:
158
+ .
159
+ .IP "" 4
160
+ .
161
+ .nf
162
+
163
+ concurrency: alpha=0
164
+ port: 15000
165
+ .
166
+ .fi
167
+ .
168
+ .IP "" 0
169
+ .
156
170
  .SH "EXAMPLES"
157
171
  Start one instance of each process type, interleave the output on stdout:
158
172
  .
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 11
9
- - 0
10
- version: 0.11.0
9
+ - 1
10
+ version: 0.11.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - |
@@ -17,11 +17,13 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-01-27 00:00:00 -08:00
20
+ date: 2011-03-08 00:00:00 -05:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
- version_requirements: &id001 !ruby/object:Gem::Requirement
24
+ prerelease: false
25
+ type: :development
26
+ requirement: &id001 !ruby/object:Gem::Requirement
25
27
  none: false
26
28
  requirements:
27
29
  - - ">="
@@ -30,12 +32,12 @@ dependencies:
30
32
  segments:
31
33
  - 0
32
34
  version: "0"
33
- requirement: *id001
34
- prerelease: false
35
35
  name: parka
36
- type: :development
36
+ version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
38
- version_requirements: &id002 !ruby/object:Gem::Requirement
38
+ prerelease: false
39
+ type: :development
40
+ requirement: &id002 !ruby/object:Gem::Requirement
39
41
  none: false
40
42
  requirements:
41
43
  - - ">="
@@ -44,12 +46,12 @@ dependencies:
44
46
  segments:
45
47
  - 0
46
48
  version: "0"
47
- requirement: *id002
48
- prerelease: false
49
49
  name: rake
50
- type: :development
50
+ version_requirements: *id002
51
51
  - !ruby/object:Gem::Dependency
52
- version_requirements: &id003 !ruby/object:Gem::Requirement
52
+ prerelease: false
53
+ type: :development
54
+ requirement: &id003 !ruby/object:Gem::Requirement
53
55
  none: false
54
56
  requirements:
55
57
  - - ">="
@@ -58,12 +60,12 @@ dependencies:
58
60
  segments:
59
61
  - 0
60
62
  version: "0"
61
- requirement: *id003
62
- prerelease: false
63
63
  name: ronn
64
- type: :development
64
+ version_requirements: *id003
65
65
  - !ruby/object:Gem::Dependency
66
- version_requirements: &id004 !ruby/object:Gem::Requirement
66
+ prerelease: false
67
+ type: :development
68
+ requirement: &id004 !ruby/object:Gem::Requirement
67
69
  none: false
68
70
  requirements:
69
71
  - - ~>
@@ -74,12 +76,12 @@ dependencies:
74
76
  - 2
75
77
  - 1
76
78
  version: 0.2.1
77
- requirement: *id004
78
- prerelease: false
79
79
  name: fakefs
80
- type: :development
80
+ version_requirements: *id004
81
81
  - !ruby/object:Gem::Dependency
82
- version_requirements: &id005 !ruby/object:Gem::Requirement
82
+ prerelease: false
83
+ type: :development
84
+ requirement: &id005 !ruby/object:Gem::Requirement
83
85
  none: false
84
86
  requirements:
85
87
  - - ~>
@@ -90,12 +92,12 @@ dependencies:
90
92
  - 9
91
93
  - 8
92
94
  version: 0.9.8
93
- requirement: *id005
94
- prerelease: false
95
95
  name: rcov
96
- type: :development
96
+ version_requirements: *id005
97
97
  - !ruby/object:Gem::Dependency
98
- version_requirements: &id006 !ruby/object:Gem::Requirement
98
+ prerelease: false
99
+ type: :development
100
+ requirement: &id006 !ruby/object:Gem::Requirement
99
101
  none: false
100
102
  requirements:
101
103
  - - ~>
@@ -106,12 +108,12 @@ dependencies:
106
108
  - 0
107
109
  - 2
108
110
  version: 1.0.2
109
- requirement: *id006
110
- prerelease: false
111
111
  name: rr
112
- type: :development
112
+ version_requirements: *id006
113
113
  - !ruby/object:Gem::Dependency
114
- version_requirements: &id007 !ruby/object:Gem::Requirement
114
+ prerelease: false
115
+ type: :development
116
+ requirement: &id007 !ruby/object:Gem::Requirement
115
117
  none: false
116
118
  requirements:
117
119
  - - ~>
@@ -122,12 +124,12 @@ dependencies:
122
124
  - 0
123
125
  - 0
124
126
  version: 2.0.0
125
- requirement: *id007
126
- prerelease: false
127
127
  name: rspec
128
- type: :development
128
+ version_requirements: *id007
129
129
  - !ruby/object:Gem::Dependency
130
- version_requirements: &id008 !ruby/object:Gem::Requirement
130
+ prerelease: false
131
+ type: :runtime
132
+ requirement: &id008 !ruby/object:Gem::Requirement
131
133
  none: false
132
134
  requirements:
133
135
  - - ~>
@@ -138,12 +140,12 @@ dependencies:
138
140
  - 5
139
141
  - 1
140
142
  version: 1.5.1
141
- requirement: *id008
142
- prerelease: false
143
143
  name: json
144
- type: :runtime
144
+ version_requirements: *id008
145
145
  - !ruby/object:Gem::Dependency
146
- version_requirements: &id009 !ruby/object:Gem::Requirement
146
+ prerelease: false
147
+ type: :runtime
148
+ requirement: &id009 !ruby/object:Gem::Requirement
147
149
  none: false
148
150
  requirements:
149
151
  - - ~>
@@ -154,12 +156,12 @@ dependencies:
154
156
  - 0
155
157
  - 5
156
158
  version: 1.0.5
157
- requirement: *id009
158
- prerelease: false
159
159
  name: term-ansicolor
160
- type: :runtime
160
+ version_requirements: *id009
161
161
  - !ruby/object:Gem::Dependency
162
- version_requirements: &id010 !ruby/object:Gem::Requirement
162
+ prerelease: false
163
+ type: :runtime
164
+ requirement: &id010 !ruby/object:Gem::Requirement
163
165
  none: false
164
166
  requirements:
165
167
  - - ~>
@@ -170,10 +172,8 @@ dependencies:
170
172
  - 13
171
173
  - 6
172
174
  version: 0.13.6
173
- requirement: *id010
174
- prerelease: false
175
175
  name: thor
176
- type: :runtime
176
+ version_requirements: *id010
177
177
  description: Process manager for applications with multiple components
178
178
  email: |
179
179
  <ddollar@gmail.com>
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  requirements: []
244
244
 
245
245
  rubyforge_project: nowarning
246
- rubygems_version: 1.4.2
246
+ rubygems_version: 1.5.0
247
247
  signing_key:
248
248
  specification_version: 3
249
249
  summary: Process manager for applications with multiple components