Class: SQLiteServer2018Plus

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

Instance Method Summary collapse

Constructor Details

#initialize(host: 'localhost', port: '57000', nodes: [], debug: false) ⇒ SQLiteServer2018Plus

Returns a new instance of SQLiteServer2018Plus.



108
109
110
111
112
# File 'lib/sqlite_server2018_plus.rb', line 108

def initialize(host: 'localhost', port: '57000', nodes: [], debug: false)

  @host, @port, @nodes, @debug = host, port, nodes, debug

end

Instance Method Details

#startObject



114
115
116
117
118
119
120
# File 'lib/sqlite_server2018_plus.rb', line 114

def start()
  
  DRb.start_service "druby://#{@host}:#{@port}", 
      SQLiteServer2018.new(@nodes, debug: @debug)
  DRb.thread.join

end