Method: Elesai::LSI#initialize
- Defined in:
- lib/elesai/lsi.rb
#initialize(opts) ⇒ LSI
Returns a new instance of LSI.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/elesai/lsi.rb', line 9 def initialize(opts) @adapters = [] @virtualdrives = [] @physicaldrives = {} @enclosures = [] @spans = [] @bbus = [] case opts[:hint] when :physicaldrive Megacli::PDlist_aAll.new.parse!(self,opts) when :virtualdrive Megacli::LDPDinfo_aAll.new.parse!(self,opts) when :adapter Megacli::AdpAllInfo_aAll.new.parse!(self,opts) when :bbu Megacli::AdpBbuCmd_aAll.new.parse!(self,opts) else Megacli::AdpAllInfo_aAll.new.parse!(self,opts) Megacli::PDlist_aAll.new.parse!(self,opts) Megacli::LDPDinfo_aAll.new.parse!(self,opts) Megacli::AdpBbuCmd_aAll.new.parse!(self,opts) end end |