Class: Xezat::Detector::Make
- Inherits:
-
Object
- Object
- Xezat::Detector::Make
- Defined in:
- lib/xezat/detector/make.rb
Instance Method Summary collapse
Instance Method Details
#detect(variables) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/xezat/detector/make.rb', line 6 def detect(variables) return true if variables.key?(:_cmake_CYGCLASS_) Find.find(variables[:B]) do |file| return true if (file.end_with?(File::SEPARATOR + 'Makefile') || file.end_with?(File::SEPARATOR + 'makefile')) end File.foreach(File.join(variables[:top], variables[:cygportfile])) do |line| return true if line.index('cygmake') end false end |