Merge pull request #53 from matth/master

Blank line in Procfile breaks Foreman
This commit is contained in:
David Dollar
2011-08-22 14:27:03 -07:00
2 changed files with 2 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ class Foreman::Engine
@processes ||= begin
@order = []
procfile.split("\n").inject({}) do |hash, line|
next if line.strip == ""
next hash if line.strip == ""
name, command = line.split(/ *: +/, 2)
unless command
warn_deprecated_procfile!

View File

@@ -27,6 +27,7 @@ end
def write_procfile(procfile="Procfile")
File.open(procfile, "w") do |file|
file.puts "alpha: ./alpha"
file.puts "\n"
file.puts "bravo: ./bravo"
end
File.expand_path(procfile)