Sha256: f94451bc2b4cd8ad5611cd7fdc3f73ae9d7302c97ff59703b035fe36f08fb923

Contents?: true

Size: 350 Bytes

Versions: 5

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

module Xezat
  module Detector
    class Waf
      def detect(variables)
        if variables.key?(:_waf_CYGCLASS_)
          Find.find(variables[:S]) do |file|
            return false if file.end_with?("#{File::SEPARATOR}waf")
          end
          return true
        end
        false
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
xezat-0.3.1 lib/xezat/detector/waf.rb
xezat-0.3.0 lib/xezat/detector/waf.rb
xezat-0.2.3 lib/xezat/detector/waf.rb
xezat-0.2.2 lib/xezat/detector/waf.rb
xezat-0.2.1 lib/xezat/detector/waf.rb