elesai 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/elesai/megacli.rb +17 -13
- data/lib/elesai/version.rb +1 -1
- metadata +1 -1
data/lib/elesai/megacli.rb
CHANGED
@@ -464,19 +464,23 @@ module Elesai
|
|
464
464
|
line.strip!
|
465
465
|
next if line == ''
|
466
466
|
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
467
|
+
begin
|
468
|
+
case line
|
469
|
+
when ADAPTER_RE then adapter_match(ADAPTER_RE.match(line))
|
470
|
+
when BBU_RE then bbu_match(BBU_RE.match(line))
|
471
|
+
when VIRTUALDRIVE_RE then virtualdrive_match(VIRTUALDRIVE_RE.match(line))
|
472
|
+
when PHYSICALDRIVE_RE then physicaldrive_match(PHYSICALDRIVE_RE.match(line))
|
473
|
+
when BBU_FIRMWARESTATUS_RE then bbu_firmwarestatus_match(BBU_FIRMWARESTATUS_RE.match(line))
|
474
|
+
when BBU_DESIGNINFO_RE then bbu_designinfo_match(BBU_DESIGNINFO_RE.match(line))
|
475
|
+
when BBU_PROPERTIES_RE then bbu_properties_match(BBU_PROPERTIES_RE.match(line))
|
476
|
+
when BBU_CAPACITYINFO_RE then bbu_capacityinfo_match(BBU_CAPACITYINFO_RE.match(line))
|
477
|
+
when BBU_GASGAUGESTATUS_RE then bbu_gasgaugestatus_match(BBU_GASGAUGESTATUS_RE.match(line))
|
478
|
+
when EXIT_RE then exit_match(EXIT_RE.match(line))
|
479
|
+
when ATTRIBUTE_RE then attribute_match(ATTRIBUTE_RE.match(line))
|
480
|
+
else raise StandardError, "cannot parse '#{line}'"
|
481
|
+
end
|
482
|
+
rescue ArgumentError # ignore lines with invalid byte sequence in UTF-8
|
483
|
+
next
|
480
484
|
end
|
481
485
|
|
482
486
|
@log.debug "\n\n"
|
data/lib/elesai/version.rb
CHANGED