Class: Xezat::Detector::Docbook2x

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

Instance Method Summary collapse

Instance Method Details

#detect(variables) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/xezat/detector/docbook2X.rb', line 8

def detect(variables)
  Find.find(variables[:S]) do |file|
    next unless file.end_with?("#{File::SEPARATOR}configure.ac", "#{File::SEPARATOR}configure.in")

    File.foreach(file) do |line|
      return true if line.include?('docbook2x-man')
    end
  end
  false
end