Sha256: aeaa5b70f5e9c2de0db548dc70685cc195809e4668b2038b37a71643c6d568fa
Contents?: true
Size: 569 Bytes
Versions: 1
Compression:
Stored size: 569 Bytes
Contents
require 'application.rb' class BrowserStarterApp<Application def initialize(*s) super end def run dirs=["/Applications/*/Contents/MacOS","/Applications/*/*/Contents/MacOS", "/usr/bin","/usr/local/bin","/opt/bin" ] browsers=["firefox"] bs=browsers.map{|b| dirs.map{|d| f=File.join(d,b) pp f Dir[f] }}.flatten browser=bs[0] pp "BS:",bs if browser system "#{browser} http://localhost:4000" else # the windows-way system "start http://localhost:4000" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appswarm-0.0.1 | apps/browser_starter/browser_starter.rb |