Class: FluentBinlogReader
- Inherits:
-
Object
- Object
- FluentBinlogReader
- Defined in:
- lib/fluent/command/binlog_reader.rb
Constant Summary collapse
- SUBCOMMAND =
%w(cat head formats)
- HELP_TEXT =
<<HELP Usage: fluent-binlog-reader <command> [<args>] Commands of fluent-binlog-reader: cat : Read files sequentially, writing them to standard output. head : Display the beginning of a text file. format : Display plugins that you can use. See 'fluent-binlog-reader <command> --help' for more information on a specific command. HELP
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(argv = ARGV) ⇒ FluentBinlogReader
constructor
A new instance of FluentBinlogReader.
Constructor Details
#initialize(argv = ARGV) ⇒ FluentBinlogReader
Returns a new instance of FluentBinlogReader.
38 39 40 |
# File 'lib/fluent/command/binlog_reader.rb', line 38 def initialize(argv = ARGV) @argv = argv end |
Instance Method Details
#call ⇒ Object
42 43 44 45 |
# File 'lib/fluent/command/binlog_reader.rb', line 42 def call command_class = BinlogReaderCommand.const_get(command) command_class.new(@argv).call end |