radfish 0.2.3 → 0.2.4
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.
- checksums.yaml +4 -4
- data/lib/radfish/client.rb +1 -0
- data/lib/radfish/controller.rb +6 -3
- data/lib/radfish/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6da783b12d9a90873743161fff969aae700800a544b1223f488e9828964b3a97
|
4
|
+
data.tar.gz: f42f9b1ae0ffbf3d50ad13732895b82472839133ece168b1cfb06b015f1d07a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0edb45f482cd15f8d389064273572d158f195500c613f99a652b713438c16715703de07130f8421dd6e2d6b7d1b2a7df4eb066d1aa0d6625cfa2e2827572bc9b
|
7
|
+
data.tar.gz: f0ba4c5e3c0d07e0f06df7f2b15a56dc99b9349d537e71c3c48037bf1d757aae773ac1d5b5df671a6398656cb12a2b0d000a6d923876c8f37d5f5f74c1f4c14a
|
data/lib/radfish/client.rb
CHANGED
data/lib/radfish/controller.rb
CHANGED
@@ -6,11 +6,12 @@ module Radfish
|
|
6
6
|
class Controller
|
7
7
|
attr_reader :id, :name, :model, :vendor, :adapter_data, :firmware_version,
|
8
8
|
:encryption_mode, :encryption_capability, :controller_type,
|
9
|
-
:pci_slot, :status, :drives_count
|
9
|
+
:pci_slot, :status, :drives_count, :battery_status
|
10
10
|
|
11
11
|
def initialize(client:, id:, name: nil, model: nil, vendor: nil, adapter_data: nil,
|
12
12
|
firmware_version: nil, encryption_mode: nil, encryption_capability: nil,
|
13
|
-
controller_type: nil, pci_slot: nil, status: nil, drives_count: nil
|
13
|
+
controller_type: nil, pci_slot: nil, status: nil, drives_count: nil,
|
14
|
+
battery_status: nil)
|
14
15
|
@client = client
|
15
16
|
@id = id
|
16
17
|
@name = name
|
@@ -24,6 +25,7 @@ module Radfish
|
|
24
25
|
@pci_slot = pci_slot
|
25
26
|
@status = status
|
26
27
|
@drives_count = drives_count
|
28
|
+
@battery_status = battery_status
|
27
29
|
end
|
28
30
|
|
29
31
|
# Convenience accessors delegate to the client wrappers
|
@@ -47,7 +49,8 @@ module Radfish
|
|
47
49
|
controller_type: controller_type,
|
48
50
|
pci_slot: pci_slot,
|
49
51
|
status: status,
|
50
|
-
drives_count: drives_count
|
52
|
+
drives_count: drives_count,
|
53
|
+
battery_status: battery_status
|
51
54
|
}.compact
|
52
55
|
end
|
53
56
|
|
data/lib/radfish/version.rb
CHANGED