NodeFly/node-foreman — pull request #19 by Iristyle (2013-01-25 23:12:25+00:00)
Title: Handles Windows Procfiles with CRLF

- If Procfile has CRLF line endings, line array ends in
a trailing \r, which breaks the Regex
- One way to work around this issue is to turn on multiline since
the lines have already been split into an array

Our Jenkins server is currently Windows based, and we have a Capistrano deploy using the `Jenkins` plugin / scm strategy.

When the files are put into the zip file, the git checkout under windows has `autocrlf` set to true, which turns all text files (like Procfile) into CRLF line endings. When the archive is downloaded from Jenkins and then extracted / pushed back up to the servers, the file arrives with CRLF.

Unfortunately during the deployment when node-foreman gets its hands on the file, it hasn't been converted back to LF.

I can understand why you might want to reject this... but I think it's an OK solution to prevent this gotcha.