Navigation Menu

Skip to content

Commit

Permalink
Convert non-string option value to string for command line
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 22, 2015
1 parent 6957644 commit c0d93ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/droonga/command/droonga_engine.rb
Expand Up @@ -163,7 +163,7 @@ def to_engine_command_line
"--port", port.to_s,
"--tag", tag,
"--internal-connection-lifetime",
internal_connection_lifetime,
internal_connection_lifetime.to_s,
"--log-level", log_level,
]
if log_file_path
Expand All @@ -184,7 +184,7 @@ def to_service_command_line
command_line_options = [
"--engine-name", engine_name,
"--internal-connection-lifetime",
internal_connection_lifetime,
internal_connection_lifetime.to_s,
]
command_line_options
end
Expand Down
2 changes: 1 addition & 1 deletion lib/droonga/supervisor.rb
Expand Up @@ -112,7 +112,7 @@ def start
"--database-path", @config.database_path.to_s,
"--plugins", @config.plugins.join(","),
"--internal-connection-lifetime",
@config.internal_connection_lifetime,
@config.internal_connection_lifetime.to_s,
]
options = {
control_write_in => control_write_in,
Expand Down

0 comments on commit c0d93ec

Please sign in to comment.