Class: Groonga::Client::CLI::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/groonga/client/cli.rb

Instance Method Summary collapse

Constructor Details

#initialize(client, options = {}) ⇒ Runner


153
154
155
156
157
158
159
# File 'lib/groonga/client/cli.rb', line 153

def initialize(client, options={})
  @client = client
  @split_load_chunk_size = options[:split_load_chunk_size] || 10000
  @generate_request_id   = options[:generate_request_id]
  @load_values = []
  @parser = create_command_parser
end

Instance Method Details

#<<(line) ⇒ Object


161
162
163
# File 'lib/groonga/client/cli.rb', line 161

def <<(line)
  @parser << line
end

#finishObject


165
166
167
# File 'lib/groonga/client/cli.rb', line 165

def finish
  @parser.finish
end