Class: Xezat::Detector::Autoconf

Inherits:
Object
  • Object
show all
Defined in:
lib/xezat/detector/autoconf.rb

Instance Method Summary collapse

Instance Method Details

#detect(variables) ⇒ Object



9
10
11
12
13
14
# File 'lib/xezat/detector/autoconf.rb', line 9

def detect(variables)
  Find::find(variables[:S]) do |file|
    return true if file.end_with?(File::SEPARATOR + 'configure.ac') || file.end_with?(File::SEPARATOR + 'configure.in')
  end
  false
end