Permalink
Browse files

accept any whitespace around : in Procfile

  • Loading branch information...
1 parent 1cbb295 commit 75d4fc562dd95a69a2df097834d03c95bb22b289 @greinacker greinacker committed Sep 11, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/foreman/engine.rb
  2. +1 −1 spec/spec_helper.rb
@@ -30,7 +30,7 @@ def processes
@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)
View
@@ -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

0 comments on commit 75d4fc5

Please sign in to comment.