accept any whitespace around : in Procfile
This commit is contained in:
@@ -30,7 +30,7 @@ class Foreman::Engine
|
|||||||
@order = []
|
@order = []
|
||||||
procfile.split("\n").inject({}) do |hash, line|
|
procfile.split("\n").inject({}) do |hash, line|
|
||||||
next hash if line.strip == ""
|
next hash if line.strip == ""
|
||||||
name, command = line.split(/ *: +/, 2)
|
name, command = line.split(/\s*:\s+/, 2)
|
||||||
unless command
|
unless command
|
||||||
warn_deprecated_procfile!
|
warn_deprecated_procfile!
|
||||||
name, command = line.split(/ +/, 2)
|
name, command = line.split(/ +/, 2)
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@ def write_procfile(procfile="Procfile")
|
|||||||
File.open(procfile, "w") do |file|
|
File.open(procfile, "w") do |file|
|
||||||
file.puts "alpha: ./alpha"
|
file.puts "alpha: ./alpha"
|
||||||
file.puts "\n"
|
file.puts "\n"
|
||||||
file.puts "bravo: ./bravo"
|
file.puts "bravo:\t./bravo"
|
||||||
end
|
end
|
||||||
File.expand_path(procfile)
|
File.expand_path(procfile)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user