Permalink
Browse files

rake build and rake open

  • Loading branch information...
1 parent 42fc86c commit 5c7e50b7dcefdce9daf9044b9d115322032e6c49 @defunkt defunkt committed Mar 6, 2010
Showing with 11 additions and 0 deletions.
  1. +11 −0 Rakefile
View
@@ -3,3 +3,14 @@ task :default => :test
task :test do
# nothing
end
+
+desc "Build & open index.html in your browser with `open(1)`"
+task :open do
+ exec "rake build && open index.html"
+end
+
+desc "Build the index.html"
+task :build do
+ exec "ruby -rubygems data.rb > data.yml &&
+ cat data.yml index.html | mustache > index.html"
+end

0 comments on commit 5c7e50b

Please sign in to comment.