Compare commits

...

4 Commits

Author SHA1 Message Date
David Dollar
35474ad1a5 0.11.1 2011-03-08 12:17:44 -05:00
David Dollar
fc5e86b269 describe .foreman in man page 2011-03-08 12:17:03 -05:00
David Dollar
7f8ca7da39 support .foreman file for default options 2011-03-08 12:14:48 -05:00
David Dollar
31239d98d0 ignore ctags file 2011-01-30 16:18:12 -08:00
4 changed files with 19 additions and 3 deletions

2
.gitignore vendored
View File

@@ -5,3 +5,5 @@ man/*.?
man/*.html
man/*.markdown
pkg
tags

View File

@@ -1,6 +1,6 @@
module Foreman
VERSION = "0.11.0"
VERSION = "0.11.1"
class AppDoesNotExist < Exception; end

View File

@@ -70,8 +70,6 @@ private ######################################################################
options[:procfile] || "Procfile"
end
private ######################################################################
def display(message)
puts message
end
@@ -85,4 +83,11 @@ private ######################################################################
File.exist?(procfile)
end
def options
original_options = super
return original_options unless File.exists?(".foreman")
defaults = YAML::load_file(".foreman")
Thor::CoreExt::HashWithIndifferentAccess.new(defaults.merge(original_options))
end
end

View File

@@ -119,6 +119,15 @@ You can validate your Procfile format using the `check` command
$ foreman check
## DEFAULT OPTIONS
If a `.foreman` 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:
concurrency: alpha=0
port: 15000
## EXAMPLES
Start one instance of each process type, interleave the output on stdout: