Class: Neo4j::RakeTasks::WindowsServerManager
- Inherits:
-
ServerManager
- Object
- ServerManager
- Neo4j::RakeTasks::WindowsServerManager
- Defined in:
- lib/neo4j/rake_tasks/windows_server_manager.rb
Overview
Represents and manages a server on Windows
Constant Summary
Constants inherited from ServerManager
ServerManager::BASE_INSTALL_DIR
Instance Method Summary collapse
Methods inherited from ServerManager
change_password!, class_for_os, #config_auth_enabeled!, #config_port!, #info, #initialize, #modify_config_file, new_for_os, #reset, #restart, #start, #stop
Constructor Details
This class inherits a constructor from Neo4j::RakeTasks::ServerManager
Instance Method Details
#install ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/neo4j/rake_tasks/windows_server_manager.rb', line 11 def install super return unless nt_admin? system_or_fail(neo4j_command_path(:install)) puts 'Neo4j Installed as a service.' end |
#neo4j_binary_filename ⇒ Object
7 8 9 |
# File 'lib/neo4j/rake_tasks/windows_server_manager.rb', line 7 def neo4j_binary_filename 'Neo4j.bat' end |
#validate_is_system_admin! ⇒ Object
20 21 22 23 24 |
# File 'lib/neo4j/rake_tasks/windows_server_manager.rb', line 20 def validate_is_system_admin! return if nt_admin? fail 'You do not have administrative rights to stop the Neo4j Service' end |