Skip to content

Commit

Permalink
Guard against missing Procfile in engine.rb
Browse files Browse the repository at this point in the history
Should be able to 'foreman run <task>' without a Procfile.  This seems true to the orig. intent as the cli does not directly check with 'run' (as it  does for 'start').
  • Loading branch information
bkaney committed Apr 24, 2012
1 parent f46408e commit 91a8704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/foreman/engine.rb
Expand Up @@ -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
Expand Down

0 comments on commit 91a8704

Please sign in to comment.