radfish-supermicro 0.1.0 → 0.1.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.
- checksums.yaml +4 -4
- data/lib/radfish/supermicro/version.rb +1 -1
- data/lib/radfish/supermicro_adapter.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18b3105e8896a1e7dfa12dc175a99295e8121da3a69c7c0f1dda6ebd0ee0b455
|
4
|
+
data.tar.gz: 4b6f0773585b541e884b17f357a21ad2d35f7e072a35550cb5d03913abda17ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef902816879796e5f2d04b7997475c9f2ee30584a4cb2e2c580e73ab89f38a5c12fefaa9b4278a74be0fdc0d128d42b6fa035c6c79188e5f66789bbc35d99b3e
|
7
|
+
data.tar.gz: 79d4631297df50b06e7d59d81a9d51af8f849eaf6bed1733596f61207aa63bf21e1ea96fca84990e490c8d61f15be9e9b017f1f5e10ef7345492b30e80162dbf
|
@@ -115,6 +115,12 @@ module Radfish
|
|
115
115
|
@supermicro_client.power_consumption
|
116
116
|
end
|
117
117
|
|
118
|
+
def power_consumption_watts
|
119
|
+
# Extract just the current watts from the power_consumption hash
|
120
|
+
data = @supermicro_client.power_consumption
|
121
|
+
data["consumed_watts"] if data.is_a?(Hash)
|
122
|
+
end
|
123
|
+
|
118
124
|
# Storage
|
119
125
|
|
120
126
|
def storage_controllers
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radfish-supermicro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Siegel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: radfish
|