class Xezat::Detector::Make

Public Instance Methods

detect(variables) click to toggle source
# File lib/xezat/detector/make.rb, line 8
def detect(variables)
  Find.find(variables[:B]) do |file|
    return true if file.end_with?("#{File::SEPARATOR}Makefile", "#{File::SEPARATOR}makefile")
  end
  File.foreach(File.join(variables[:top], variables[:cygportfile])) do |line|
    return true if line.index('cygmake')
  end
  false
end