ruby version of Version.java

This commit is contained in:
Doug MacEachern 2009-07-18 16:26:52 -07:00
parent 5d572585b0
commit ce06f86292
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
require 'rbsigar'
require 'rbconfig'
puts "Sigar version......." + Sigar::VERSION
puts "Build date.........." + Sigar::BUILD_DATE
puts "SCM rev............." + Sigar::SCM_REVISION
sys = Sigar.new.sys_info
puts "OS description......" + sys.description
puts "OS name............." + sys.name
puts "OS arch............." + sys.arch
puts "OS machine.........." + sys.machine
puts "OS version.........." + sys.version
puts "OS patch level......" + sys.patch_level
puts "OS vendor..........." + sys.vendor
puts "OS vendor version..." + sys.vendor_version
if (sys.vendor_code_name != nil)
puts "OS code name........" + sys.vendor_code_name
end
puts "Ruby version........" + RUBY_VERSION
puts "Ruby build vendor..." + ::Config::CONFIG['build_vendor']
puts "Ruby archdir........" + ::Config::CONFIG['archdir']