Skip to content
This repository has been archived by the owner on Jul 8, 2019. It is now read-only.

Commit

Permalink
Added simple Rails detection
Browse files Browse the repository at this point in the history
  • Loading branch information
zargony committed Jun 19, 2010
1 parent 75b017e commit 2123a70
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/appserver/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ def rack?
File.exist?(rack_config)
end

def rails?
['boot.rb', 'environment.rb', 'routes.rb'].all? do |f|
File.exist?(File.join(path, 'config', f))
end
end

def unicorn_config
File.expand_path('../unicorn.conf.rb', __FILE__)
end
Expand Down

0 comments on commit 2123a70

Please sign in to comment.