Class: Fluent::Supervisor
- Inherits:
-
Object
- Object
- Fluent::Supervisor
- Defined in:
- lib/fluent/format/check.rb
Instance Method Summary collapse
-
#ext_dry_run ⇒ Object
Extended to accept IO object.
-
#ext_read_config ⇒ Object
Extended to accept IO object.
Instance Method Details
#ext_dry_run ⇒ Object
Extended to accept IO object
46 47 48 49 50 51 52 53 |
# File 'lib/fluent/format/check.rb', line 46 def ext_dry_run ext_read_config change_privilege init_engine install_main_process_signal_handlers run_configure true end |
#ext_read_config ⇒ Object
Extended to accept IO object
56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/fluent/format/check.rb', line 56 def ext_read_config if @config_path.respond_to?(:read) # IO object @config_data = @config_path.read else @config_fname = File.basename(@config_path) @config_basedir = File.dirname(@config_path) @config_data = File.read(@config_path) end if @inline_config == '-' @config_data << "\n" << STDIN.read elsif @inline_config @config_data << "\n" << @inline_config.gsub("\\n","\n") end end |