Sha256: 0352bd9d6d8a0b0cc45cfa97070996acb44cdb3a9505738f751ea013031c64e5

Contents?: true

Size: 350 Bytes

Versions: 3

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

3 entries across 3 versions & 1 rubygems

Version Path
xezat-0.2.0 lib/xezat/detector/waf.rb
xezat-0.1.2 lib/xezat/detector/waf.rb
xezat-0.1.1 lib/xezat/detector/waf.rb