Module: LibFinder
- Includes:
- HTTParty
- Defined in:
- lib/libFinder.rb,
lib/libFinder/version.rb
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.is_rails ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/libFinder.rb', line 7 def self.is_rails base_path = Dir.pwd controllers = File.exist?(base_path+"/controllers") #check if the file has a controllers folder or not models = File.exist?(base_path+"/models") #check if the file has a models folder or not if controllers && models #if both are true then it is a rails app return true else return false end end |