From 91a87049db45fd70cbfb254b63d088ca95d65d68 Mon Sep 17 00:00:00 2001 From: Brian Kaney Date: Tue, 24 Apr 2012 15:51:14 -0400 Subject: [PATCH] Guard against missing Procfile in engine.rb Should be able to 'foreman run ' without a Procfile. This seems true to the orig. intent as the cli does not directly check with 'run' (as it does for 'start'). --- lib/foreman/engine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/foreman/engine.rb b/lib/foreman/engine.rb index 34b96f92..0b74a751 100644 --- a/lib/foreman/engine.rb +++ b/lib/foreman/engine.rb @@ -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