Merge pull request #187 from bkaney/master

Guard against missing Procfile in engine.rb
This commit is contained in:
David Dollar
2012-04-29 21:00:58 -07:00
+1 -1
View File
@@ -21,7 +21,7 @@ class Foreman::Engine
Foreman::Color.enable($stdout)
def initialize(procfile, options={})
@procfile = Foreman::Procfile.new(procfile)
@procfile = Foreman::Procfile.new(procfile) if File.exists?(procfile)
@directory = options[:app_root] || File.expand_path(File.dirname(procfile))
@options = options.dup
@output_mutex = Mutex.new