Class: Fluent::Format

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/format.rb,
lib/fluent/format/cli.rb,
lib/fluent/format/check.rb,
lib/fluent/format/check.rb,
lib/fluent/format/format.rb,
lib/fluent/format/version.rb

Defined Under Namespace

Classes: BundlerInjection, CLI, Check, Format

Constant Summary collapse

VERSION =
"0.3.0"

Class Method Summary collapse

Class Method Details

.check(config_dev, opts = {}) ⇒ Boolean

Check config file

Parameters:

  • config_dev (IO|String)
  • opts (Hash) (defaults to: {})

Returns:

  • (Boolean)


19
20
21
# 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 = {}) ⇒ String

Format config file

Parameters:

  • config_dev (IO|String)
  • opts (Hash) (defaults to: {})

Returns:

  • (String)

    the formatted config



10
11
12
# File 'lib/fluent/format.rb', line 10

def self.format(config_dev, opts = {})
  Fluent::Format::Format.new(config_dev, opts).run
end