bundler fun
This commit is contained in:
parent
64286e9340
commit
0b863b3ddb
|
@ -10,20 +10,13 @@ rescue Bundler::GemfileNotFound
|
||||||
end
|
end
|
||||||
|
|
||||||
require 'thor'
|
require 'thor'
|
||||||
require 'rack'
|
|
||||||
require 'attentive'
|
require 'attentive'
|
||||||
require 'pygments'
|
|
||||||
require 'coffee_script'
|
|
||||||
require 'sass'
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
load 'presentation.rb'
|
load 'presentation.rb'
|
||||||
rescue LoadError => e
|
rescue LoadError => e
|
||||||
end
|
end
|
||||||
|
|
||||||
# make sure pygments is ready
|
|
||||||
Pygments.highlight("attentive")
|
|
||||||
|
|
||||||
class Attentive::CLI < Thor
|
class Attentive::CLI < Thor
|
||||||
include Thor::Actions
|
include Thor::Actions
|
||||||
|
|
||||||
|
@ -33,6 +26,14 @@ 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?
|
||||||
|
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|
|
Rack::Handler::WEBrick.run(Attentive::Server, :Port => options[:port]) do |server|
|
||||||
trap(:INT) { server.shutdown }
|
trap(:INT) { server.shutdown }
|
||||||
end
|
end
|
||||||
|
|
|
@ -7,7 +7,7 @@ $(->
|
||||||
setTimeout(
|
setTimeout(
|
||||||
->
|
->
|
||||||
$(window).trigger('resize')
|
$(window).trigger('resize')
|
||||||
, 250
|
, 500
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue