Class: Xezat::Detector::Gnulib

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

Instance Method Summary collapse

Instance Method Details

#detect(variables) ⇒ Object



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

def detect(variables)
  File.foreach(File.join(variables[:top], variables[:cygportfile])) do |line|
    return true if line.index('gnulib-tools')
  end
  false
end