Module: Kanrisuru::Core::Dmi

Extended by:
OsPackage::Define
Defined in:
lib/kanrisuru/core/dmi.rb,
lib/kanrisuru/core/dmi/types.rb,
lib/kanrisuru/core/dmi/parsers/dmi.rb,
lib/kanrisuru/core/dmi/commands/dmi.rb

Defined Under Namespace

Modules: Parser Classes: AdditionalInformation, BIOS, BIOSLanguage, Baseboard, BootIntegrityServices, BuiltInPointingDevice, Cache, Chassis, CoolingDevice, ElectricalCurrentProbe, GroupAssociation, HardwareSecurity, IPMIDevice, ManagementControllerHostInterface, ManagementDevice, ManagementDeviceComponent, ManagementDeviceThresholdData, MemoryArrayMappedAddress, MemoryChannel, MemoryChannelDevice, MemoryController, MemoryDevice, MemoryDeviceMappedAddress, MemoryError32Bit, MemoryError64Bit, MemoryModule, OEMStrings, OnBoardDevice, OnboardDevicesExtendedInformation, OutOfBandRemoteAccess, PhysicalMemoryArray, PortConnector, PortableBattery, Processor, ProtocolRecord, System, SystemBoot, SystemConfigurationOptions, SystemEventLog, SystemPowerControls, SystemPowerSupply, SystemReset, SystemSlots, TPMDevice, TemperatureProbe, VoltageProbe

Instance Method Summary collapse

Methods included from OsPackage::Define

extended, os_define

Instance Method Details

#dmi(opts = {}) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'lib/kanrisuru/core/dmi/commands/dmi.rb', line 6

def dmi(opts = {})
  command = Kanrisuru::Command.new('dmidecode')
  dmi_type_opts(command, opts)

  execute_shell(command)

  Kanrisuru::Result.new(command) do |cmd|
    Parser::Dmi.parse(cmd)
  end
end