Navigation Menu

Skip to content

Commit

Permalink
grndb mrb: rename module name
Browse files Browse the repository at this point in the history
    Command ->
    CommandLine

Because "command" is used for "select command", "table_create command"
and so on in Groonga.
  • Loading branch information
kou committed Jan 4, 2015
1 parent 6b360cd commit 719330c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
@@ -1,5 +1,5 @@
module Groonga
module Command
module CommandLine
class Grndb
def initialize(argv)
@command, *@arguments = argv
Expand Down
2 changes: 1 addition & 1 deletion lib/mrb/scripts/sources.am
@@ -1,6 +1,6 @@
RUBY_SCRIPT_FILES = \
backtrace_entry.rb \
command/grndb.rb \
command_line/grndb.rb \
context.rb \
context/error_level.rb \
context/rc.rb \
Expand Down
10 changes: 5 additions & 5 deletions src/grndb.c
Expand Up @@ -32,18 +32,18 @@ run_command(grn_ctx *ctx, int argc, char **argv)
int exit_code = EXIT_SUCCESS;
grn_mrb_data *data = &(ctx->impl->mrb);
mrb_state *mrb = data->state;
mrb_value mrb_command_module;
mrb_value mrb_command_line_module;
mrb_value mrb_grndb_class;

mrb_command_module = mrb_const_get(mrb,
mrb_obj_value(data->module),
mrb_intern_cstr(mrb, "Command"));
mrb_command_line_module = mrb_const_get(mrb,
mrb_obj_value(data->module),
mrb_intern_cstr(mrb, "CommandLine"));
if (mrb->exc) {
goto exit;
}

mrb_grndb_class = mrb_const_get(mrb,
mrb_command_module,
mrb_command_line_module,
mrb_intern_cstr(mrb, "Grndb"));
if (mrb->exc) {
goto exit;
Expand Down

0 comments on commit 719330c

Please sign in to comment.