Sha256: d540ca0e160ef85e6715e43af27e84d6159443832637cf96e12cd8c75bd33619
Contents?: true
Size: 582 Bytes
Versions: 1
Compression:
Stored size: 582 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'oyster' require File.expand_path(File.dirname(__FILE__) + '/../lib/terminus') spec = Oyster.spec do name "terminus -- Control web browsers with Ruby" synopsis "terminus [--port PORT]" integer :port, :default => Terminus::DEFAULT_PORT end begin options = spec.parse app = Terminus.create(options) trap("INT") { app.stop! ; exit } Terminus.port = options[:port] puts "Terminus server running on port #{Terminus.port}" puts "Press CTRL-C to exit" puts "" app.run! rescue Oyster::HelpRendered end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
terminus-0.3.0 | bin/terminus |