diff --git a/README.md b/README.md index 276b6ed..310bb07 100644 --- a/README.md +++ b/README.md @@ -19,3 +19,4 @@ Run the presentation that's in the current directory on port 9393. Run the current presentation on another port. +Edit `presentation.rb` and start adding `.slides` files in `presentation/`. The files are processed in sort order. diff --git a/bin/attentive b/bin/attentive index d11d266..8a3471d 100755 --- a/bin/attentive +++ b/bin/attentive @@ -26,7 +26,7 @@ class Attentive::CLI < Thor method_options [ :port, '-p' ] => 9393 def start if Attentive.has_presentation? - Attentive::Server.start! + Attentive::Server.start(options) else raise Attentive::NoPresentationError end diff --git a/lib/attentive/server.rb b/lib/attentive/server.rb index 79fe9ff..b5b6137 100644 --- a/lib/attentive/server.rb +++ b/lib/attentive/server.rb @@ -14,7 +14,7 @@ require 'forwardable' module Attentive class Server < Rack::Builder - def start! + def self.start(options) require 'rack' require 'pygments' require 'coffee_script'