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.
76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/fluent/command/binlog_reader.rb', line 76 def initialize(argv = ARGV) @argv = argv @options = { plugin: [] } @opt_parser = OptionParser.new do |opt| opt.version = Fluent::VERSION 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
90 91 92 |
# File 'lib/fluent/command/binlog_reader.rb', line 90 def call raise NotImplementedError, 'BUG: command MUST implement this method' end |