Permalink
Browse files

server and client auxdbs

  • Loading branch information...
1 parent 6e17a1e commit 9bc6e599c5e774f88d3feec7c6ae145b24889b25 @AlexKVal committed Dec 30, 2011
Showing with 4 additions and 1 deletion.
  1. +1 −0 lib/applier.rb
  2. +1 −0 lib/client.rb
  3. +2 −1 lib/config.rb
View
@@ -1,3 +1,4 @@
+SIDE = 'server'
require_relative 'config'
require_relative 'central/received_data_queue'
require_relative 'shared/pvsw'
View
@@ -1,3 +1,4 @@
+SIDE = 'client'
require_relative "config"
require_relative "client/table_tracking"
require_relative "client/trackings_queue"
View
@@ -9,7 +9,8 @@
# require 'rbconfig'
# if RbConfig::CONFIG['target_os'] =~ /darwin/i
- AUX_DB = "#{ROOT_DIR}/auxdb.sqlite3"
+ raise "SIDE must be set to 'server' or 'client'" if SIDE.nil?
+ AUX_DB = "#{ROOT_DIR}/#{SIDE}_db.sqlite3"
TEST_DB = "#{ROOT_DIR}/testdb.sqlite3"
# else
# p ROOT_DIR

0 comments on commit 9bc6e59

Please sign in to comment.