summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-02-23 10:34:45 +0100
committerChristoph Helma <helma@in-silico.ch>2011-02-23 10:34:45 +0100
commit182f3e9f34026934626ceff42902274f2e6f046c (patch)
tree45834ead3d416e871c8881bb6add353827de1a65 /Rakefile
parent545f4f9e511d8e39a808a1c24de37eb33d2f026e (diff)
error handling fixed
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile25
1 files changed, 20 insertions, 5 deletions
diff --git a/Rakefile b/Rakefile
index d260989..9d6afff 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,13 +1,27 @@
require 'rubygems'
require 'opentox-ruby'
-if File.exists? "auth.rb"
- require "auth"
-else
+=begin
+=end
+class Exception
+
+ def message
+ unless errorCause == nil
+ errorCause.to_yaml
+ else
+ self.to_s
+ end
+ end
+
+end
+
+#if File.exists? "auth.rb"
+ #require "auth"
+#else
#exit "Please create an authenticatio
TEST_USER = "guest"
TEST_PW = "guest"
-end
+#end
task ARGV[0] do
puts "Environment: #{ENV["RACK_ENV"]}"
@@ -27,7 +41,8 @@ task :teardown do
OpenTox::Authorization.logout(@@subjectid)
end
-[:all, :feature, :dataset, :fminer, :lazar, :authorization].each do |t|
+[:all, :feature, :dataset, :fminer, :lazar, :authorization, :validation].each do |t|
+#[:all, :feature, :dataset, :fminer, :lazar, :authorization].each do |t|
task :teardown => t
task t => :setup
end