module Relaxo::QueryServer
Constants
- VERSION
Public Class Methods
run!(options = {})
click to toggle source
Run the query server using ‘$stdin` and `$stdout` for communication.
# File lib/relaxo/query_server.rb, line 27 def self.run!(options = {}) shell = Shell.new($stdin, $stdout) context = Context.new(shell, options) if options[:debug] log = File.open(options[:debug], 'a') shell = DebugShell.new(log, shell) end shell.run do |command| context.run(command) end end