Class: Informo::Bios
- Inherits:
-
Object
- Object
- Informo::Bios
- Defined in:
- lib/informo/bios.rb
Overview
Allows for the retrieval of bios related information.
Instance Method Summary collapse
-
#date ⇒ Object
returns the release date of the installed bios version as a string.
-
#serial ⇒ Object
returns the serial number as a string.
-
#vendor ⇒ Object
returns the bios vendor as a string.
-
#version ⇒ Object
returns the bios version as a string.
Instance Method Details
#date ⇒ Object
returns the release date of the installed bios version as a string
25 26 27 28 |
# File 'lib/informo/bios.rb', line 25 def date date = `dmidecode -s bios-release-date`.chomp return date end |
#serial ⇒ Object
returns the serial number as a string
7 8 9 10 |
# File 'lib/informo/bios.rb', line 7 def serial serial = `dmidecode -s system-serial-number`.chomp return serial end |
#vendor ⇒ Object
returns the bios vendor as a string
13 14 15 16 |
# File 'lib/informo/bios.rb', line 13 def vendor vendor = `dmidecode -s system-product-name`.chomp return vendor end |
#version ⇒ Object
returns the bios version as a string
19 20 21 22 |
# File 'lib/informo/bios.rb', line 19 def version version = `dmidecode -s bios-version`.chomp return version end |