summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-01-28 18:11:15 +0100
committerChristoph Helma <helma@in-silico.ch>2011-01-28 18:11:15 +0100
commit545f4f9e511d8e39a808a1c24de37eb33d2f026e (patch)
tree7b61495456fe22356e1a8a8e85e3e774878d5af2 /Rakefile
parent5f0d5b9ffa13f54b52fa0a41dd2d7f2ab55978f5 (diff)
auth added
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index a287f95..d260989 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,12 +1,17 @@
require 'rubygems'
require 'opentox-ruby'
-TEST_USER = "guest"
-TEST_PW = "guest"
+if File.exists? "auth.rb"
+ require "auth"
+else
+ #exit "Please create an authenticatio
+ TEST_USER = "guest"
+ TEST_PW = "guest"
+end
task ARGV[0] do
- puts ENV["RACK_ENV"]
- puts ARGV[0]+".rb"
+ puts "Environment: #{ENV["RACK_ENV"]}"
+ puts "Test: "+ARGV[0]+".rb"
require "./"+ARGV[0]+".rb"
end