Class: Fluent::Auditify::SyntaxChecker
- Inherits:
-
Object
- Object
- Fluent::Auditify::SyntaxChecker
- Defined in:
- lib/fluent/auditify/syntax_checker.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SyntaxChecker
constructor
A new instance of SyntaxChecker.
- #run(options = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ SyntaxChecker
8 9 10 11 12 13 14 |
# File 'lib/fluent/auditify/syntax_checker.rb', line 8 def initialize(={}) = { log_level: [:log_level] || Logger::INFO, color: [:color] } @logger = Fluent::Auditify::Log.new() end |
Instance Method Details
#run(options = {}) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/fluent/auditify/syntax_checker.rb', line 16 def run(={}) if [:mask_only] @manager = Fluent::Auditify::PluginManager.new(@logger, mask_only: true) @manager.dispatch() else @manager = Fluent::Auditify::PluginManager.new(@logger) @manager.dispatch() # instance @manager.report(:console) end true end |