Sha256: 0d6394708075adbca9c8e752eb7fb60d6f3f75f05c6ddb5b3e76d80a85fb0deb
Contents?: true
Size: 569 Bytes
Versions: 1
Compression:
Stored size: 569 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'oyster' require File.expand_path('../../lib/terminus', __FILE__) 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.4.0 | bin/terminus |