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.2.6"

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)


18
19
20
# File 'lib/fluent/format.rb', line 18

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

.format(config_dev) ⇒ String

Format config file

Parameters:

  • config_dev (IO|String)

Returns:

  • (String)

    the formatted config



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

def self.format(config_dev)
  Fluent::Format::Format.new(config_dev).run
end