class Start
Public Instance Methods
start()
click to toggle source
# File lib/commands/start.rb, line 20 def start root = "#{content_root}/master" thr = Thread.new do server = WEBrick::HTTPServer.new :Port => options[:port], :DocumentRoot => root trap 'INT' do server.shutdown end server.start end if @presentation_name Launchy.open("http://localhost:#{options[:port]}/slides/#{@presentation_name}") else Launchy.open("http://localhost:#{options[:port]}/slides/") end thr.join end