some updates, maybe i need tests?

This commit is contained in:
John Bintz 2012-02-13 12:20:05 -05:00
parent a3f155b594
commit 882e8a04f1
3 changed files with 3 additions and 2 deletions

View File

@ -19,3 +19,4 @@ Run the presentation that's in the current directory on port 9393.
Run the current presentation on another port. Run the current presentation on another port.
Edit `presentation.rb` and start adding `.slides` files in `presentation/`. The files are processed in sort order.

View File

@ -26,7 +26,7 @@ class Attentive::CLI < Thor
method_options [ :port, '-p' ] => 9393 method_options [ :port, '-p' ] => 9393
def start def start
if Attentive.has_presentation? if Attentive.has_presentation?
Attentive::Server.start! Attentive::Server.start(options)
else else
raise Attentive::NoPresentationError raise Attentive::NoPresentationError
end end

View File

@ -14,7 +14,7 @@ require 'forwardable'
module Attentive module Attentive
class Server < Rack::Builder class Server < Rack::Builder
def start! def self.start(options)
require 'rack' require 'rack'
require 'pygments' require 'pygments'
require 'coffee_script' require 'coffee_script'