Sha256: 1cb1dd8ca5a39671a46da178bf2f2bd053d720885cd35f585dea38f21db47e8c

Contents?: true

Size: 690 Bytes

Versions: 1

Compression:

Stored size: 690 Bytes

Contents

#!/usr/bin/env ruby

$:.push File.expand_path('../../lib', __FILE__)

require 'rubygems'
require 'optparse'
require 'rest-assured/config'

OptionParser.new do |opts|
  opts.banner = "Usage: rest-assured [options]"

  opts.on('-d', '--database FILENAME', "Path to database file. Defaults to ./rest-assured.db. There is a special value ':memory:' for in memory database.") do |fname|
    AppConfig[:database] = fname
  end

  opts.on('-p', '--port PORT', Integer, "Server port. Defaults to 4578") do |port|
    AppConfig[:port] = port
  end

  opts.on_tail("-h", "--help", "Show this message") do
    puts opts
    exit
  end
end.parse!

require 'rest-assured'

RestAssured::Application.run!

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rest-assured-0.1.0 bin/rest-assured