-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to config to allow for different locations for cypher and gremlin
plugins
- Loading branch information
nickflux
committed
Mar 19, 2012
1 parent
9e4540e
commit 86095cd
Showing
2 changed files
with
21 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
module Neography | ||
class Config | ||
class << self; attr_accessor :protocol, :server, :port, :directory, :log_file, :log_enabled, :logger, :max_threads, :authentication, :username, :password end | ||
class << self; attr_accessor :protocol, :server, :port, :directory, :cypher_path, :gremlin_path, :log_file, :log_enabled, :logger, :max_threads, :authentication, :username, :password end | ||
|
||
@protocol = 'http://' | ||
@server = 'localhost' | ||
@port = 7474 | ||
@directory = '' | ||
@log_file = 'neography.log' | ||
@log_enabled = false | ||
@logger = Logger.new(@log_file) if @log_enabled | ||
@max_threads = 20 | ||
@protocol = 'http://' | ||
@server = 'localhost' | ||
@port = 7474 | ||
@directory = '' | ||
@cypher_path = '/cypher' | ||
@gremlin_path = '/ext/GremlinPlugin/graphdb/execute_script' | ||
@log_file = 'neography.log' | ||
@log_enabled = false | ||
@logger = Logger.new(@log_file) if @log_enabled | ||
@max_threads = 20 | ||
@authentication = {} | ||
@username = nil | ||
@password = nil | ||
@username = nil | ||
@password = nil | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters