Class: Fluent::Format::CLI
- Inherits:
-
Thor
- Object
- Thor
- Fluent::Format::CLI
- Defined in:
- lib/fluent/format/cli.rb
Instance Method Summary collapse
Instance Method Details
#check ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/fluent/format/cli.rb', line 25 def check config = [:config] Fluent::Format.check(config, ) rescue => e $stderr.puts "#{e.class} #{e.message} #{e.backtrace.first}" exit 1 end |
#format ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/fluent/format/cli.rb', line 10 def format config = [:config] taputs Fluent::Format.format(config) rescue => e $stderr.puts "#{e.class} #{e.message} #{e.backtrace.first}" exit 1 end |