Module: DebugBundle::Runtime
- Defined in:
- lib/debugbundle/runtime.rb
Class Method Summary collapse
Class Method Details
.payload ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/debugbundle/runtime.rb', line 7 def self.payload { 'version' => RUBY_VERSION, 'platform' => RUBY_PLATFORM, 'pid' => Process.pid, 'cwd' => Dir.pwd, 'hostname' => Socket.gethostname, 'thread_id' => Thread.current.object_id, 'engine' => defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby', 'engine_version' => defined?(RUBY_ENGINE_VERSION) ? RUBY_ENGINE_VERSION : RUBY_VERSION } rescue StandardError { 'version' => RUBY_VERSION } end |