diff options
author | Martin Gütlein <martin.guetlein@gmail.com> | 2010-01-08 10:06:58 +0100 |
---|---|---|
committer | Martin Gütlein <martin.guetlein@gmail.com> | 2010-01-08 10:06:58 +0100 |
commit | 5b17bca7cc5dc54a43c6214c05fc0270050cdd32 (patch) | |
tree | 469cc66629b6a1b3e1a91f863b44dc778cb58333 /application.rb | |
parent | 8bc9fc6ca4a0acb3d708d5ed614ba4464f307fad (diff) |
reordered loading once again
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/application.rb b/application.rb index 4a6bc40..c9506ed 100644 --- a/application.rb +++ b/application.rb @@ -1,11 +1,15 @@ - -require "example.rb" - -[ 'rubygems', 'sinatra', 'sinatra/url_for', 'logger' ].each do |lib| +[ 'rubygems', 'sinatra', 'sinatra/url_for', 'opentox-ruby-api-wrapper', 'logger' ].each do |lib| require lib end +unless(defined? LOGGER) + LOGGER = Logger.new(STDOUT) + LOGGER.datetime_format = "%Y-%m-%d %H:%M:%S " +end + +require "example.rb" + get '/examples/?' do content_type "text/plain" Example.transform_example |