Class: BinlogReaderCommand::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/command/binlog_reader.rb

Direct Known Subclasses

Formats, Head

Instance Method Summary collapse

Constructor Details

#initialize(argv = ARGV) ⇒ Base

Returns a new instance of Base.



68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/fluent/command/binlog_reader.rb', line 68

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

#callObject

Raises:

  • (NotImplementedError)


81
82
83
# File 'lib/fluent/command/binlog_reader.rb', line 81

def call
  raise NotImplementedError, 'BUG: command  MUST implement this method'
end