Sha256: 7c76a6c180cdfe85694b0471843f4710e60ce2cd6beca17abed231e48f3d424a
Contents?: true
Size: 565 Bytes
Versions: 1
Compression:
Stored size: 565 Bytes
Contents
require 'thor' require_relative '../../fluent-format' module Fluent class Format class CLI < Thor default_command :start desc "start", "Start fluent-format" option :config, :aliases => ["-c"], :type => :string, :default => 'fluent.conf', :desc => 'Fluentd configuration file' def start config = @options[:config] $log = Fluent::Log.new(STDERR, Fluent::Log::LEVEL_WARN) puts Fluent::Format.format_config(config) rescue => e $log.error "#{e.class}: #{e}" exit 1 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluent-format-0.1.1 | lib/fluent/format/cli.rb |