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.



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

#callObject

Raises:

  • (NotImplementedError)


90
91
92
# File 'lib/fluent/command/binlog_reader.rb', line 90

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