Permalink
Browse files

Merge pull request #69 from greinacker/whitespace

Whitespace in Procfile
  • Loading branch information...
2 parents 23124af + ec1b06a commit f7542083dd360adefe298e318d2aeb92e8f12dfc @ddollar ddollar committed Sep 12, 2011
Showing with 3 additions and 2 deletions.
  1. +1 −0 README.markdown
  2. +1 −1 lib/foreman/engine.rb
  3. +1 −1 spec/spec_helper.rb
View
@@ -42,6 +42,7 @@ Patches contributed by:
* Ricardo Chimal, Jr
* Thom May
* clifff
+* Greg Reinacker
## License
View
@@ -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 f754208

Please sign in to comment.