Class: Rubyipmi::Freeipmi::Sensors
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- BaseCommand
- Rubyipmi::Freeipmi::Sensors
- Includes:
- SensorsMixin
- Defined in:
- lib/rubyipmi/freeipmi/commands/sensors.rb
Instance Attribute Summary
Attributes inherited from BaseCommand
#cmd, #lastcall, #max_retry_count, #options, #passfile, #result
Instance Method Summary collapse
- #getsensors ⇒ Object
-
#initialize(opts = ObservableHash.new) ⇒ Sensors
constructor
A new instance of Sensors.
- #sensor_class ⇒ Object
Methods included from SensorsMixin
#count, #fanlist, #list, #names, #refresh, #templist
Methods inherited from BaseCommand
#find_fix, #makecommand, #max_retry_count, #setpass, #validate_status
Methods inherited from BaseCommand
#dump_command, #find_fix, #locate_command, #logger, #makecommand, #removepass, #run, #runcmd, #setpass, #update, #validate_status
Constructor Details
#initialize(opts = ObservableHash.new) ⇒ Sensors
Returns a new instance of Sensors.
7 8 9 |
# File 'lib/rubyipmi/freeipmi/commands/sensors.rb', line 7 def initialize(opts = ObservableHash.new) super("ipmi-sensors", opts) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Rubyipmi::SensorsMixin
Instance Method Details
#getsensors ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/rubyipmi/freeipmi/commands/sensors.rb', line 11 def getsensors @options["no-header-output"] = false @options["output-sensor-state"] = false @options["entity-sensor-names"] = false runcmd @options.delete_notify('no-header-output') @options.delete_notify('output-sensor-state') @options.delete_notify('entity-sensor-names') @result end |
#sensor_class ⇒ Object
22 23 24 |
# File 'lib/rubyipmi/freeipmi/commands/sensors.rb', line 22 def sensor_class Sensor end |