some updates, maybe i need tests?
This commit is contained in:
parent
a3f155b594
commit
882e8a04f1
@ -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.
|
||||||
|
@ -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
|
||||||
|
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user