Permalink
Browse files

Error on stdlib:install unless SOURCE/VERSION are passed in

  • Loading branch information...
1 parent 7eba423 commit a7c4f6da7ebac8271d81ba24db65a1ad214be9f3 @lsegal lsegal committed Aug 21, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 Rakefile
View
2 Rakefile
@@ -68,6 +68,8 @@ end
namespace :stdlib do
desc 'Installs a standard library SOURCE=pathtolib VERSION=targetversion'
task :install do
+ raise 'Missing SOURCE path (SOURCE=pathtolib)' unless ENV['SOURCE']
+ raise 'Missing Ruby version (VERSION=targetversion)' unless ENV['VERSION']
require 'stdlib_installer'
StdlibInstaller.new(ENV['SOURCE'], ENV['VERSION']).install
end

0 comments on commit a7c4f6d

Please sign in to comment.