Module: AppEngine::Rack

Defined in:
lib/appengine-rack.rb

Defined Under Namespace

Classes: DeferredDispatcher

Class Method Summary collapse

Class Method Details

.environmentObject

Deprecated, use ENV instead



71
72
73
74
75
76
77
78
# File 'lib/appengine-rack.rb', line 71

def environment
  if !$servlet_context.nil? and
      $servlet_context.server_info.include? 'Development'
    'development'
  else
    'production'
  end
end