Sha256: 40c6e1fa98e5c8df98cea4f5b620d70998ed0a1a539a4e0c6e83de043257c604

Contents?: true

Size: 590 Bytes

Versions: 2

Compression:

Stored size: 590 Bytes

Contents

#!/usr/bin/env ruby
require_relative '../lib/ongaku_ryoho_server.rb'

#
# Look for some of the Sinatra options and pass them along

options = {}

if ARGV.any?
  require 'optparse'
  OptionParser.new { |op|
    op.on('-p port',   'set the port (default is 4567)')            { |val| options[:port] = Integer(val) }
    op.on('-o addr',   'set the host (default is 0.0.0.0)')         { |val| options[:bind] = val }
    op.on('-x',        'turn on the mutex lock (default is off)')   {       options[:lock] = true }
  }.parse!(ARGV.dup)
end


#
# Run the server

OngakuRyohoServer.run(options)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ongaku_ryoho_server-0.1.1 bin/ongaku_ryoho_server
ongaku_ryoho_server-0.1.0 bin/ongaku_ryoho_server