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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 527454266f07cf2a797f42c324d9a8a17ddc2586f72aa00af935500ea4386ef1
4
- data.tar.gz: 3ff97e72d6947dd6c08e34d7682daa579b3bf3d4f505726feb4ab280172db56e
3
+ metadata.gz: f05569a76e03f75c446229de12ff12a84b6d93a23256821e3fba8c43e2241a49
4
+ data.tar.gz: 25de5109e5e40914d50d7ded48a2e83fb42f93f1fe1a3fa1b83fdd307fe15c58
5
5
  SHA512:
6
- metadata.gz: a76db748a58725fe2c6409c40df95449d5a648a9647a816e8653f2c31adcb519d2d88a2e1a452e902ce7efb65d868f78e2a9bc09bf4952aaf141ed1b518b9836
7
- data.tar.gz: 1e2bca28672a8ac30ad0573040374d016417a77cc6c264fb5434ce1ed40561260cccb54eb58385aeebe749fc27de20d780adeee82a67dabc7a49f54e299033bb
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IDRAC
4
- VERSION = "0.8.1"
4
+ VERSION = "0.8.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idrac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Siegel