Sha256: c1ae4d902316c3c4b12fff8363cc2a1e16d4d2bc9d77d03ea266db3728425225

Contents?: true

Size: 245 Bytes

Versions: 1

Compression:

Stored size: 245 Bytes

Contents

require "rack"
require "rubai"
require "optparse"

options = Hash[:app, Rubai::RackApp.new, :Port, 9292]
parser = OptionParser.new do |opts|
  opts.on("-p", "--port PORT") { |p| options[:Port] = p }
end
parser.parse!

Rack::Server.start options

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubai-0.1.1 lib/rubai/cli.rb