Sha256: ee8c8245720e029bf93ee3f679bef7f05bdbb82760417dd4566dd14a5ca8e9df

Contents?: true

Size: 348 Bytes

Versions: 3

Compression:

Stored size: 348 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.end_with?(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.0 lib/xezat/detector/autoconf.rb
xezat-0.1.2 lib/xezat/detector/autoconf.rb
xezat-0.1.1 lib/xezat/detector/autoconf.rb