Browse files

add rake task to serve up the presentation

  • Loading branch information...
1 parent 8aea5ad commit 5d0fd7be8c84cdeed7d58034263c3d012d8d6816 @jtimberman jtimberman committed Feb 18, 2012
Showing with 10 additions and 3 deletions.
  1. +1 −0 Gemfile
  2. +3 −3
  3. +6 −0 Rakefile
1 Gemfile
@@ -1,4 +1,5 @@
source :rubygems
+gem "rake"
gem "redcarpet"
gem "pdfkit"
gem "showoff", :git => "git://", :branch => "chef-fnd"
@@ -22,13 +22,13 @@ Requirements:
gem install bundler
bundle install
-cd slides
-bundle exec showoff serve
+rake present
Depending on how your local system's Ruby was installed, you may need
to use `sudo` to run `gem install` and `bundle install`. You may also
-need to use `bundle exec showoff serve` to run the presentation.
+need to use `bundle exec showoff serve` in the `slides` directory to
+run the presentation, though the rake task should handle this already.
Two URLs are available:
6 Rakefile
@@ -3,6 +3,12 @@ require "fileutils"
require 'redcarpet'
require 'json'
+desc "Serve the presentation"
+task :present do
+ Dir.chdir("slides")
+ sh "bundle exec showoff serve"
desc "Create the directory and initial slides (with SECTION=name)"
task :mksection do
section = ENV['SECTION']

0 comments on commit 5d0fd7b

Please sign in to comment.