Class: Fluent::Format::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/fluent/format/cli.rb

Instance Method Summary collapse

Instance Method Details

#checkObject



25
26
27
28
29
30
31
# File 'lib/fluent/format/cli.rb', line 25

def check
  config = @options[:config]
  Fluent::Format.check(config, @options)
rescue => e
  $stderr.puts "#{e.class} #{e.message} #{e.backtrace.first}"
  exit 1
end

#formatObject



10
11
12
13
14
15
16
# File 'lib/fluent/format/cli.rb', line 10

def format
  config = @options[:config]
  taputs Fluent::Format.format(config)
rescue => e
  $stderr.puts "#{e.class} #{e.message} #{e.backtrace.first}"
  exit 1
end