Class: Mink::AuthReplSetManager
- Inherits:
-
ReplSetManager
- Object
- ReplSetManager
- Mink::AuthReplSetManager
- Defined in:
- lib/mink/managers/auth_repl_set_manager.rb
Instance Attribute Summary
Attributes inherited from ReplSetManager
#host, #mongods, #name, #pids, #ports, #start_port
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ AuthReplSetManager
constructor
A new instance of AuthReplSetManager.
- #start_cmd(n) ⇒ Object
Methods inherited from ReplSetManager
#arbiters, #cleanup_set, #configure_node, #ensure_up, #get_manual_conf, #get_node_from_port, #kill, #kill_primary, #kill_secondary, #primary, #restart_killed_nodes, #secondaries, #shard_string, #start, #start_set, #step_down_primary, #write_conf
Methods included from ManagerHelper
#attempt, #get_path, #kill_existing_mongods, #kill_existing_mongos, #kill_pidlist
Constructor Details
#initialize(opts = {}) ⇒ AuthReplSetManager
Returns a new instance of AuthReplSetManager.
5 6 7 8 9 10 |
# File 'lib/mink/managers/auth_repl_set_manager.rb', line 5 def initialize(opts={}) super(opts) @key_path = opts[:key_path] || File.join(File.(File.dirname(__FILE__)), "keyfile.txt") system("chmod 600 #{@key_path}") end |
Instance Method Details
#start_cmd(n) ⇒ Object
12 13 14 |
# File 'lib/mink/managers/auth_repl_set_manager.rb', line 12 def start_cmd(n) super + " --keyFile #{@key_path}" end |