Sha256: 275719a3ec13080ed46732649505a7d11949977626917f5eda9cc39896b83721
Contents?: true
Size: 773 Bytes
Versions: 1
Compression:
Stored size: 773 Bytes
Contents
#!/usr/bin/env ruby $:.unshift File.expand_path '../lib', File.dirname(__FILE__) require 'rubygems' require 'bowl' require 'args_parser' parser = ArgsParser.parse ARGV do arg :port, 'HTTP port', :alias => :p, :default => 8901 arg :help, 'show help', :alias => :h end bin = $0.split('/').last if parser.has_option? :help STDERR.puts "Bowl - Mac/Linux controller for your Application v#{Bowl::VERSION}" STDERR.puts " https://github.com/shokai/bowl" STDERR.puts STDERR.puts parser.help STDERR.puts STDERR.puts "e.g." STDERR.puts " % #{bin} --port 8901" exit 0 end dir = File.expand_path '../lib/bowl/app', File.dirname(__FILE__) puts "start bowl => http://localhost:#{parser[:port]}" system "cd '#{dir}' && rackup config.ru -p #{parser[:port]}"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bowl-0.0.2 | bin/bowl |