Sha256: 47d7825c975953328e2451465b39c79786b13e2686f20c6153a4c40bcd4cfe9c
Contents?: true
Size: 556 Bytes
Versions: 3
Compression:
Stored size: 556 Bytes
Contents
#!/usr/bin/env ruby # Parse options require 'optparse' OPTIONS = {} OptionParser.new do |opts| opts.banner = "Usage: tsadmin [options]" opts.on("-c", "--config [path]", "Port") do |config| OPTIONS[:config] = config end opts.on("-p", "--port [port]", "Port") do |port| OPTIONS[:port] = port.to_i end end.parse! # Start TSAdmin require File.expand_path('../../app', __FILE__) Ramaze.start( :adapter => :webrick, :port => OPTIONS[:port] || APP_CONFIG['port'] || 7000, :file => __FILE__, :root => Ramaze.options.roots )
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ts-admin-0.2.2 | bin/ts-admin |
ts-admin-0.2.1 | bin/ts-admin |
ts-admin-0.2.0 | bin/ts-admin |