Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #69 from greinacker/whitespace

Whitespace in Procfile
  • Loading branch information...
commit f7542083dd360adefe298e318d2aeb92e8f12dfc 2 parents 23124af + ec1b06a
@ddollar ddollar authored
View
1  README.markdown
@@ -42,6 +42,7 @@ Patches contributed by:
* Ricardo Chimal, Jr
* Thom May
* clifff
+* Greg Reinacker
## License
View
2  lib/foreman/engine.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
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.