Class: SQLiteServer2018

Inherits:
Object
  • Object
show all
Defined in:
lib/sqlite_server2018.rb

Instance Method Summary collapse

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

#startObject



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