diff --git a/lib/foreman/engine.rb b/lib/foreman/engine.rb index 5cf82f3..f92c38a 100644 --- a/lib/foreman/engine.rb +++ b/lib/foreman/engine.rb @@ -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) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3dc2a7f..0e22f50 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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