class Fluent::Format

Constants

VERSION

Public Class Methods

check(config_dev, opts = {}) click to toggle source

Check config file

@param [IO|String] config_dev @param [Hash] opts @return [Boolean]

# File lib/fluent/format.rb, line 19
def self.check(config_dev, opts = {})
  Fluent::Format::Check.new(config_dev, opts).run
end
format(config_dev, opts = {}) click to toggle source

Format config file

@param [IO|String] config_dev @param [Hash] opts @return [String] the formatted config

# File lib/fluent/format.rb, line 10
def self.format(config_dev, opts = {})
  Fluent::Format::Format.new(config_dev, opts).run
end