Class: SQLiteServer2018
- Inherits:
-
Object
- Object
- SQLiteServer2018
- Defined in:
- lib/sqlite_server2018.rb
Instance Method Summary collapse
-
#initialize(host: 'localhost', port: '57000', cache: 5, debug: false, filepath: '.') ⇒ SQLiteServer2018
constructor
A new instance of SQLiteServer2018.
- #start ⇒ Object
Constructor Details
#initialize(host: 'localhost', port: '57000', cache: 5, debug: false, filepath: '.') ⇒ SQLiteServer2018
Returns a new instance of SQLiteServer2018.
106 107 108 109 110 111 |
# File 'lib/sqlite_server2018.rb', line 106 def initialize(host: 'localhost', port: '57000', cache: 5, debug: false, filepath: '.') @host, @port, @cache, @filepath = host, port, cache, filepath end |
Instance Method Details
#start ⇒ Object
113 114 115 116 117 118 119 |
# File 'lib/sqlite_server2018.rb', line 113 def start() DRb.start_service "druby://#{@host}:#{@port}", SQLiteServer.new(cache: @cache, debug: @debug, filepath: @filepath) DRb.thread.join end |