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.



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

#callObject

Raises:

  • (NotImplementedError)


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

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