bundler fun
This commit is contained in:
parent
64286e9340
commit
0b863b3ddb
@ -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
|
||||
|
@ -7,7 +7,7 @@ $(->
|
||||
setTimeout(
|
||||
->
|
||||
$(window).trigger('resize')
|
||||
, 250
|
||||
, 500
|
||||
)
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user