Module: DeepCover::Tools::LooksLikeRailsProject
- Extended by:
- LooksLikeRailsProject
- Included in:
- LooksLikeRailsProject
- Defined in:
- lib/deep_cover/tools/looks_like_rails_project.rb
Instance Method Summary collapse
Instance Method Details
#looks_like_rails_project?(path) ⇒ Boolean
6 7 8 9 10 11 |
# File 'lib/deep_cover/tools/looks_like_rails_project.rb', line 6 def looks_like_rails_project?(path) path = File.(path) %w(app config/application.rb config/environments db/migrate lib).all? do |q_path| File.exist?("#{path}/#{q_path}") end end |