Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix rakefile

  • Loading branch information...
commit f1c93d1863ab1b36c5b7f0095ed8f94ccd54a9f2 1 parent 5a79751
@icco authored
Showing with 10 additions and 3 deletions.
  1. +10 −3 Rakefile
View
13 Rakefile
@@ -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']
Please sign in to comment.
Something went wrong with that request. Please try again.