Skip to content

Commit

Permalink
adding start-no-wait
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed May 13, 2013
1 parent 589bd7b commit 2b433aa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions lib/neography/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,22 @@
end
puts value
end

desc "Start the Neo4j Server in the background"
task :start_no_wait do
puts "Starting Neo4j in the background..."
if OS::Underlying.windows?
if %x[reg query "HKU\\S-1-5-19"].size > 0
value = %x[neo4j/bin/Neo4j.bat start-no-wait] #start service
else
puts "Starting Neo4j directly, not as a service."
value = %x[neo4j/bin/Neo4j.bat start-no-wait]
end
else
value = %x[neo4j/bin/neo4j start-no-wait]
end
puts value
end

desc "Stop the Neo4j Server"
task :stop do
Expand Down
2 changes: 1 addition & 1 deletion neography.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "coveralls"
s.add_dependency "httpclient", ">= 2.3.3"
s.add_dependency "rake", ">= 0.8.7"
s.add_dependency "json", ">= 1.6.0"
s.add_dependency "json", ">= 1.7.7"
s.add_dependency "os", ">= 0.9.6"
s.add_dependency "rubyzip", ">= 0.9.7"
s.add_dependency "multi_json", ">= 1.3.2"
Expand Down

0 comments on commit 2b433aa

Please sign in to comment.