diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-01-28 18:11:15 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-01-28 18:11:15 +0100 |
commit | 545f4f9e511d8e39a808a1c24de37eb33d2f026e (patch) | |
tree | 7b61495456fe22356e1a8a8e85e3e774878d5af2 /Rakefile | |
parent | 5f0d5b9ffa13f54b52fa0a41dd2d7f2ab55978f5 (diff) |
auth added
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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 |