accept any whitespace around : in Procfile

This commit is contained in:
Greg Reinacker
2011-09-11 17:01:31 -06:00
parent 1cbb295b0d
commit 75d4fc562d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ class Foreman::Engine
@order = []
procfile.split("\n").inject({}) do |hash, line|
next hash if line.strip == ""
name, command = line.split(/ *: +/, 2)
name, command = line.split(/\s*:\s+/, 2)
unless command
warn_deprecated_procfile!
name, command = line.split(/ +/, 2)
+1 -1
View File
@@ -28,7 +28,7 @@ def write_procfile(procfile="Procfile")
File.open(procfile, "w") do |file|
file.puts "alpha: ./alpha"
file.puts "\n"
file.puts "bravo: ./bravo"
file.puts "bravo:\t./bravo"
end
File.expand_path(procfile)
end