Class: Heartcheck::Controllers::Environment

Inherits:
Base
  • Object
show all
Defined in:
lib/heartcheck/controllers/environment.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
9
10
11
12
13
14
# File 'lib/heartcheck/controllers/environment.rb', line 6

def index
  MultiJson.dump(
    {
      :system_info => Hash[Sys::Uname.uname.each_pair.to_a],
      :ruby_version => RUBY_VERSION,
      :rails_version => defined?(Rails) ? Rails::VERSION::STRING : '(none)'
    }
  )
end