Class: BinlogReaderCommand::Base
- Inherits:
-
Object
- Object
- BinlogReaderCommand::Base
- Defined in:
- lib/fluent/command/binlog_reader.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(argv = ARGV) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(argv = ARGV) ⇒ Base
Returns a new instance of Base.
67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/fluent/command/binlog_reader.rb', line 67 def initialize(argv = ARGV) @argv = argv @options = { plugin: [] } @opt_parser = OptionParser.new do |opt| opt.separator 'Options:' opt.on('-p DIR', '--plugin', 'add library directory path') do |v| @options[:plugin] << v end end end |
Instance Method Details
#call ⇒ Object
80 81 82 |
# File 'lib/fluent/command/binlog_reader.rb', line 80 def call raise NotImplementedError, 'BUG: command MUST implement this method' end |