Sha256: 8bc51a3e92331fb1a6bea4af0c5d64cf636b31d728bc72c8150208248cf40351
Contents?: true
Size: 479 Bytes
Versions: 3
Compression:
Stored size: 479 Bytes
Contents
# frozen_string_literal: true require 'find' module Xezat module Detector class Make def detect(variables) Find.find(variables[:B]) do |file| return true if file.end_with?(File::SEPARATOR + 'Makefile') || file.end_with?(File::SEPARATOR + 'makefile') end File.foreach(File.join(variables[:top], variables[:cygportfile])) do |line| return true if line.index('cygmake') end false end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xezat-0.2.0 | lib/xezat/detector/make.rb |
xezat-0.1.2 | lib/xezat/detector/make.rb |
xezat-0.1.1 | lib/xezat/detector/make.rb |