bundler fun

This commit is contained in:
John Bintz 2012-02-13 11:55:43 -05:00
parent 64286e9340
commit 0b863b3ddb
2 changed files with 9 additions and 8 deletions

View File

@ -10,20 +10,13 @@ rescue Bundler::GemfileNotFound
end
require 'thor'
require 'rack'
require 'attentive'
require 'pygments'
require 'coffee_script'
require 'sass'
begin
load 'presentation.rb'
rescue LoadError => e
end
# make sure pygments is ready
Pygments.highlight("attentive")
class Attentive::CLI < Thor
include Thor::Actions
@ -33,6 +26,14 @@ class Attentive::CLI < Thor
method_options [ :port, '-p' ] => 9393
def start
if Attentive.has_presentation?
require 'rack'
require 'pygments'
require 'coffee_script'
require 'sass'
# make sure pygments is ready
Pygments.highlight("attentive")
Rack::Handler::WEBrick.run(Attentive::Server, :Port => options[:port]) do |server|
trap(:INT) { server.shutdown }
end

View File

@ -7,7 +7,7 @@ $(->
setTimeout(
->
$(window).trigger('resize')
, 250
, 500
)
)