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
84 85 86 87 88 89 |
# File 'lib/sqlite_server2018.rb', line 84 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
91 92 93 94 95 96 97 |
# File 'lib/sqlite_server2018.rb', line 91 def start() DRb.start_service "druby://#{@host}:#{@port}", SQLiteServer.new(cache: @cache, debug: @debug, filepath: @filepath) DRb.thread.join end |