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



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

#startObject



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