Added rake task for running koans against several rubies.
authorJim Weirich <jim.weirich@gmail.com>
Mon, 27 Sep 2010 17:46:21 +0000 (13:46 -0400)
committerJim Weirich <jim.weirich@gmail.com>
Mon, 27 Sep 2010 17:46:21 +0000 (13:46 -0400)
rakelib/run.rake [new file with mode: 0644]

diff --git a/rakelib/run.rake b/rakelib/run.rake
new file mode 100644 (file)
index 0000000..6d52f61
--- /dev/null
@@ -0,0 +1,7 @@
+RUBIES = ENV['KOAN_RUBIES'] || %w(ruby-1.8.7-p299,ruby-1.9.2-p0,jruby-1.5.2,jruby-head)
+
+task :runall do
+  chdir('src') do
+    sh "rvm #{RUBIES} path_to_enlightenment.rb"
+  end
+end