Class: Fluent::Format::Check
- Inherits:
-
Object
- Object
- Fluent::Format::Check
- Defined in:
- lib/fluent/format/check.rb
Instance Method Summary collapse
-
#initialize(config_dev, plugin_dir = nil) ⇒ Check
constructor
Initialize.
-
#run ⇒ Object
Check config file.
Constructor Details
#initialize(config_dev, plugin_dir = nil) ⇒ Check
Initialize
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/fluent/format/check.rb', line 10 def initialize(config_dev, plugin_dir = nil) @opts = { :config_path => config_dev, # Fluent::DEFAULT_CONFIG_PATH, :plugin_dirs => [Fluent::DEFAULT_PLUGIN_DIR], :log_level => Fluent::Log::LEVEL_INFO, :log_path => nil, :daemonize => false, :libs => [], :setup_path => nil, :chuser => nil, :chgroup => nil, :suppress_interval => 0, :suppress_repeated_stacktrace => false, } @opts[:plugin_dirs] << plugin_dir if plugin_dir end |
Instance Method Details
#run ⇒ Object
Check config file
32 33 34 |
# File 'lib/fluent/format/check.rb', line 32 def run Fluent::Supervisor.new(@opts).ext_dry_run end |