Permalink
Browse files

Fix rakefile

  • Loading branch information...
1 parent 5a79751 commit f1c93d1863ab1b36c5b7f0095ed8f94ccd54a9f2 @icco committed Mar 1, 2011
Showing with 10 additions and 3 deletions.
  1. +10 −3 Rakefile
View
@@ -17,9 +17,16 @@ desc "Deploy to remote defined in config.yaml"
task :github do
require File.expand_path('../resume',__FILE__)
require 'rubygems'
- require 'git'
- require 'rack/test'
- require 'logger'
+
+ # Nice Error checking for gems.
+ [ 'git', 'rack/test', 'logger' ].each {|gem|
+ begin
+ require gem
+ rescue LoadError
+ puts "The gem #{gem} is not installed.\n"
+ exit
+ end
+ }
remote = YAML.load_file('config.yaml')['github']['remote']

0 comments on commit f1c93d1

Please sign in to comment.