module Sinatra::Underway

Public Instance Methods

debug_route(request) click to toggle source
# File lib/underway/sinatra.rb, line 6
def debug_route(request)
  log(request.inspect)
end
gh_api(*args) click to toggle source
# File lib/underway/sinatra.rb, line 20
def gh_api(*args)
  ::Underway::Api.invoke(*args)
end
log(message) click to toggle source
# File lib/underway/sinatra.rb, line 14
def log(message)
  if verbose_logging?
    ::Underway::Settings.configuration.logger.info(message)
  end
end
verbose_logging?() click to toggle source
# File lib/underway/sinatra.rb, line 10
def verbose_logging?
  !!::Underway::Settings.configuration.verbose_logging
end