Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (13 sloc) 294 Bytes
require 'pp'
run lambda {
env = ENV.to_hash.to_a.sort_by {|(k,v)| k}
body = <<-EOT
Gems:
#{Gem.source_index.gems.keys.sort.pretty_inspect}
Gem path:
#{Gem.path.sort.pretty_inspect}
ENV:
#{env.pretty_inspect}
EOT
Rack::Response.new(body, 200, {"Content-Type" => "text/plain"}).finish
}