Sha256: 0d28cc5472f4829cfaa07deb563031f3bfd778e53c984364525085d99f8ca4e7

Contents?: true

Size: 381 Bytes

Versions: 155

Compression:

Stored size: 381 Bytes

Contents

require File.join((File.expand_path(File.dirname(__FILE__))), 'repl_set_manager')

class AuthReplSetManager < ReplSetManager
  def initialize(opts={})
    super(opts)

    @key_path = opts[:key_path] || File.join(File.expand_path(File.dirname(__FILE__)), "keyfile.txt")
    system("chmod 600 #{@key_path}")
  end

  def start_cmd(n)
    super + " --keyFile #{@key_path}"
  end
end

Version data entries

155 entries across 109 versions & 8 rubygems

Version Path
fluent-plugin-mongo-0.7.16 test/tools/auth_repl_set_manager.rb
fluent-plugin-mongo-0.7.15 test/tools/auth_repl_set_manager.rb
fluent-plugin-mongo-0.7.14 test/tools/auth_repl_set_manager.rb
fluent-plugin-mongo-0.7.13 test/tools/auth_repl_set_manager.rb
fluent-plugin-mongo-0.7.12 test/tools/auth_repl_set_manager.rb
fluent-plugin-mongo-0.7.11 test/tools/auth_repl_set_manager.rb
classiccms-0.7.5 vendor/bundle/gems/mongo-1.6.2/test/tools/auth_repl_set_manager.rb
classiccms-0.7.5 vendor/bundle/gems/mongo-1.6.1/test/tools/auth_repl_set_manager.rb
classiccms-0.7.4 vendor/bundle/gems/mongo-1.6.1/test/tools/auth_repl_set_manager.rb
classiccms-0.7.4 vendor/bundle/gems/mongo-1.6.2/test/tools/auth_repl_set_manager.rb
classiccms-0.7.3 vendor/bundle/gems/mongo-1.6.1/test/tools/auth_repl_set_manager.rb
classiccms-0.7.3 vendor/bundle/gems/mongo-1.6.2/test/tools/auth_repl_set_manager.rb
fluent-plugin-mongo-0.7.10 test/tools/auth_repl_set_manager.rb
fluent-plugin-mongo-0.7.9 test/tools/auth_repl_set_manager.rb
fluent-plugin-mongo-0.7.8 test/tools/auth_repl_set_manager.rb
fluent-plugin-mongo-0.7.7 test/tools/auth_repl_set_manager.rb
fluent-plugin-mongo-0.7.6 test/tools/auth_repl_set_manager.rb
fluent-plugin-mongo-0.7.5 test/tools/auth_repl_set_manager.rb
fluent-plugin-mongo-0.7.4 test/tools/auth_repl_set_manager.rb
fluent-plugin-mongo-0.7.3 test/tools/auth_repl_set_manager.rb