Class: Neo4j::RakeTasks::WindowsServerManager

Inherits:
ServerManager show all
Defined in:
lib/neo4j/rake_tasks/windows_server_manager.rb

Overview

Represents and manages a server on Windows

Instance Method Summary collapse

Methods inherited from ServerManager

change_password!, class_for_os, #config_auth_enabeled!, #config_port!, #console, #info, #initialize, #modify_config_contents, #modify_config_file, new_for_os, #reset, #restart, #shell, #start, #stop

Constructor Details

This class inherits a constructor from Neo4j::RakeTasks::ServerManager

Instance Method Details

#installObject



15
16
17
18
19
20
21
22
# File 'lib/neo4j/rake_tasks/windows_server_manager.rb', line 15

def install
  super

  return unless nt_admin?

  system_or_fail(neo4j_command_path(:install))
  puts 'Neo4j Installed as a service.'
end

#neo4j_binary_filenameObject



7
8
9
# File 'lib/neo4j/rake_tasks/windows_server_manager.rb', line 7

def neo4j_binary_filename
  'Neo4j.bat'
end

#neo4j_shell_binary_filenameObject



11
12
13
# File 'lib/neo4j/rake_tasks/windows_server_manager.rb', line 11

def neo4j_shell_binary_filename
  'Neo4jShell.bat'
end

#validate_is_system_admin!Object



24
25
26
27
28
# File 'lib/neo4j/rake_tasks/windows_server_manager.rb', line 24

def validate_is_system_admin!
  return if nt_admin?

  fail 'You do not have administrative rights to stop the Neo4j Service'
end