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.
119 120 121 122 123 124 |
# File 'lib/sqlite_server2018.rb', line 119 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
126 127 128 129 130 131 132 |
# File 'lib/sqlite_server2018.rb', line 126 def start() DRb.start_service "druby://#{@host}:#{@port}", SQLiteServer.new(cache: @cache, debug: @debug, filepath: @filepath) DRb.thread.join end |