Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Oahu
- # The Sinatra app
- class App < Sinatra::Default
- enable :raise_errors
- configure do
- puts "Configuring with #{environment}"
- end
- # Simple ping action for testing
- get '/ping' do
- "Ping: #{Time.now} in #{options.environment.to_s} or #{ENV['RACK_ENV']}"
- end
- end
- end
Add Comment
Please, Sign In to add comment