Sha256: f526f5128cd5b7c111ebfdb7aac946494f0a545f8aed6d031a7719b28648b023

Contents?: true

Size: 330 Bytes

Versions: 3

Compression:

Stored size: 330 Bytes

Contents

# frozen_string_literal: true

require 'find'

module Xezat
  module Detector
    class Autoconf
      def detect(variables)
        Find.find(variables[:S]) do |file|
          return true if file.end_with?("#{File::SEPARATOR}configure.ac", "#{File::SEPARATOR}configure.in")
        end
        false
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
xezat-0.2.3 lib/xezat/detector/autoconf.rb
xezat-0.2.2 lib/xezat/detector/autoconf.rb
xezat-0.2.1 lib/xezat/detector/autoconf.rb