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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20b841559e3cc4e455080d08674e9dea05765e03eba7993fd8aa163091d5d8bf
4
- data.tar.gz: c081dda341c709cac9adc8218f162cf94ef5c8447b89d2cf4a3565cad8aed3bb
3
+ metadata.gz: 18b3105e8896a1e7dfa12dc175a99295e8121da3a69c7c0f1dda6ebd0ee0b455
4
+ data.tar.gz: 4b6f0773585b541e884b17f357a21ad2d35f7e072a35550cb5d03913abda17ba
5
5
  SHA512:
6
- metadata.gz: bcac0dc35c77d06305ad51bfbfc9b8c2ae2c6e3a9f44efe51f9e6fb8d0718bad82e21ca0f6fab53e297f48df949d1dec88aba03721cca3c50c8c9aa958e9a2f4
7
- data.tar.gz: ead37a3aa5ed5ee9ffe5daed00e5ebe6efaa45279fa3a631ba3589ee5b44b20e5f476229ff7c17867251e7aab2b3d2b287ce661efdb3ec4dc0dea28e2dfbe3e9
6
+ metadata.gz: ef902816879796e5f2d04b7997475c9f2ee30584a4cb2e2c580e73ab89f38a5c12fefaa9b4278a74be0fdc0d128d42b6fa035c6c79188e5f66789bbc35d99b3e
7
+ data.tar.gz: 79d4631297df50b06e7d59d81a9d51af8f849eaf6bed1733596f61207aa63bf21e1ea96fca84990e490c8d61f15be9e9b017f1f5e10ef7345492b30e80162dbf
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Radfish
4
4
  module Supermicro
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
@@ -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.0
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-22 00:00:00.000000000 Z
11
+ date: 2025-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: radfish