From 882e8a04f18480c07de60ebee355e11b54f8fded Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 13 Feb 2012 12:20:05 -0500 Subject: [PATCH] some updates, maybe i need tests? --- README.md | 1 + bin/attentive | 2 +- lib/attentive/server.rb | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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'