idrac 0.8.1 → 0.8.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/idrac/power.rb +8 -0
- data/lib/idrac/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: f05569a76e03f75c446229de12ff12a84b6d93a23256821e3fba8c43e2241a49
|
4
|
+
data.tar.gz: 25de5109e5e40914d50d7ded48a2e83fb42f93f1fe1a3fa1b83fdd307fe15c58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d28f789451cddfaa2fbd31a24109f6a7517b4605a1604c70c37bba5cc9b73d10bd3f187fcdc5e934d55c06c966bcc7cacbad615ffadca6fb873d6e03af0284bf
|
7
|
+
data.tar.gz: 22b385944dd4abb637bdfea5f3383f9b853d6bd37ffa889fde70482802da163cdd20ef1f7580e7c54657aa900fbf9cbb8ef8e7199fcd0f4d4a985617f574c158
|
data/lib/idrac/power.rb
CHANGED
@@ -152,6 +152,14 @@ module IDRAC
|
|
152
152
|
JSON.parse(handle_response(response))&.dig("PowerControl", 0, "PowerConsumedWatts")&.to_f
|
153
153
|
end
|
154
154
|
|
155
|
+
# TODO: Migrate method names to match radfish interface for uniformity:
|
156
|
+
# - Rename get_power_usage_watts to power_consumption_watts
|
157
|
+
# - Rename get_power_state to power_status
|
158
|
+
# - Ensure all methods return consistent types across vendors
|
159
|
+
# Once all vendor gems conform to the same interface, the radfish adapters
|
160
|
+
# can become thin registration layers or be eliminated entirely.
|
161
|
+
alias_method :power_consumption_watts, :get_power_usage_watts
|
162
|
+
|
155
163
|
private
|
156
164
|
|
157
165
|
def wait_for_power_state(target_state:, tries: 6)
|
data/lib/idrac/version.rb
CHANGED