Merge pull request #69 from greinacker/whitespace

Whitespace in Procfile
This commit is contained in:
David Dollar
2011-09-12 11:39:10 -07:00
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -42,6 +42,7 @@ Patches contributed by:
* Ricardo Chimal, Jr
* Thom May
* clifff
* Greg Reinacker
## License
+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