diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-02-23 10:34:45 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-02-23 10:34:45 +0100 |
commit | 182f3e9f34026934626ceff42902274f2e6f046c (patch) | |
tree | 45834ead3d416e871c8881bb6add353827de1a65 /Rakefile | |
parent | 545f4f9e511d8e39a808a1c24de37eb33d2f026e (diff) |
error handling fixed
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 25 |
1 files changed, 20 insertions, 5 deletions
@@ -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 |