Sha256: edb572e801e7783d1fc4037b3a05ef01bdd15d8c66a6fadd5111872b5a42d51c
Contents?: true
Size: 661 Bytes
Versions: 2
Compression:
Stored size: 661 Bytes
Contents
require "redis_scanner/version" require "redis_scanner/rule" require "redis_scanner/pattern" require "redis_scanner/redis" require "redis_scanner/engine" require "redis_scanner/formatter" require "redis" module RedisScanner def self.scan(options) redis = Redis.new options engine = Engine.new redis, options patterns = engine.run output_result(patterns, options) end def self.output_result(patterns, options) formatter = Formatter.new(options) result = formatter.format patterns if options[:file] File.open(options[:file], "w") do |file| file.puts result end else puts result end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
redis_scanner-0.1.4 | lib/redis_scanner.rb |
redis_scanner-0.1.3 | lib/redis_scanner.rb |