Guest User

Untitled

a guest
Jun 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. module Oahu
  2.  
  3. # The Sinatra app
  4. class App < Sinatra::Default
  5. enable :raise_errors
  6.  
  7. configure do
  8. puts "Configuring with #{environment}"
  9. end
  10.  
  11. # Simple ping action for testing
  12. get '/ping' do
  13. "Ping: #{Time.now} in #{options.environment.to_s} or #{ENV['RACK_ENV']}"
  14. end
  15.  
  16. end
  17. end
Add Comment
Please, Sign In to add comment