Sha256: 8f8ddb3a81e2e7d6da79855670956ccb841e13f4eb2ccc61c1520d0188603176

Contents?: true

Size: 383 Bytes

Versions: 6

Compression:

Stored size: 383 Bytes

Contents

require 'sys-uname'

module Heartcheck
  module Controllers
    class Environment < Base
      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
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
heartcheck-2.0.0 lib/heartcheck/controllers/environment.rb
heartcheck-1.6.0 lib/heartcheck/controllers/environment.rb
heartcheck-1.5.1 lib/heartcheck/controllers/environment.rb
heartcheck-1.5.0 lib/heartcheck/controllers/environment.rb
heartcheck-1.4.0 lib/heartcheck/controllers/environment.rb
heartcheck-1.3.0 lib/heartcheck/controllers/environment.rb