Class: Xezat::Detector::Automake
- Inherits:
-
Object
- Object
- Xezat::Detector::Automake
- Defined in:
- lib/xezat/detector/automake.rb
Instance Method Summary collapse
Instance Method Details
#detect(variables) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/xezat/detector/automake.rb', line 8 def detect(variables) return false unless variables.keys.index do |key| %i[_cmake_CYGCLASS_ _meson_CYGCLASS_ _ninja_CYGCLASS_].include?(key) end.nil? Find.find(variables[:S]) do |file| return true if file.end_with?('.am') end false end |