From f800179478a3b368314c194d22248308f9594448 Mon Sep 17 00:00:00 2001 From: Max De Marzi Date: Thu, 11 Apr 2013 11:19:59 -0500 Subject: [PATCH] fixing issue #81 --- lib/neography/tasks.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/neography/tasks.rb b/lib/neography/tasks.rb index 8c02ddd..abc8b54 100644 --- a/lib/neography/tasks.rb +++ b/lib/neography/tasks.rb @@ -57,14 +57,15 @@ puts "Starting Neo4j..." if OS::Underlying.windows? if %x[reg query "HKU\\S-1-5-19"].size > 0 - %x[neo4j/bin/Neo4j.bat start] #start service + value = %x[neo4j/bin/Neo4j.bat start] #start service else puts "Starting Neo4j directly, not as a service." - %x[neo4j/bin/Neo4j.bat] + value = %x[neo4j/bin/Neo4j.bat] end else - %x[neo4j/bin/neo4j start] + value = %x[neo4j/bin/neo4j start] end + puts value end desc "Stop the Neo4j Server" @@ -72,13 +73,14 @@ puts "Stopping Neo4j..." if OS::Underlying.windows? if %x[reg query "HKU\\S-1-5-19"].size > 0 - %x[neo4j/bin/Neo4j.bat stop] #stop service + value = %x[neo4j/bin/Neo4j.bat stop] #stop service else puts "You do not have administrative rights to stop the Neo4j Service" end else - %x[neo4j/bin/neo4j stop] + value = %x[neo4j/bin/neo4j stop] end + puts value end desc "Restart the Neo4j Server"