idrac 0.3.2 → 0.3.3

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: 0563eaa5f82230341766606c73b15cf2e850b45b1ef3859f2aaa9e49b9c65df9
4
- data.tar.gz: 29ee247993cb532d71447b5fa5fff1406a91a2d553923cedd8e207eb5a0c9c4a
3
+ metadata.gz: c859d5dbe93470744821ac95422ad8e4a1ac065a0bf643b7c6a717b8488da996
4
+ data.tar.gz: '019a9d9999f1fa8d5c0e1c88783e7ccbf9d8f10b6a32cc11bd38c83a94e5815e'
5
5
  SHA512:
6
- metadata.gz: 351a3b5d3c973d7a7c4ec1767fbd73f46eea0149e713c29bea930974efae1a9c4eeda008ce964fcb307bca02d12571734cc96429fd5901fa4e4021f84bbab391
7
- data.tar.gz: db4363923ae2e7581e55ff7622b75b889622f9e5aa04b8cfaf33b957c5015495cdbffb787dec8c56d28c86cd956fac4e24bd54331b7854a907cf75ad9e6008e0
6
+ metadata.gz: 483e33a17932027f62dc688b6e9c101f337d9b25cebdaa0e6c150072d934b3950c39c43ff8cab5cc9532c34765d0740ba26ecfbe4a5a3f34a35c96888386495f
7
+ data.tar.gz: 79c1135bd0ecb5be85fbc746bd20862203b01b0b8d75a2e3444f7496850b870c3b467a5dfe00e77d8c84cd8aae2a0250db916c166a7c3eec6753667eb95bfe98
data/lib/idrac/boot.rb CHANGED
@@ -2,7 +2,7 @@ require 'json'
2
2
  require 'colorize'
3
3
 
4
4
  module IDRAC
5
- module BootManagementMethods
5
+ module Boot
6
6
  # Get BIOS boot options
7
7
  def get_bios_boot_options
8
8
  response = authenticated_request(:get, "/redfish/v1/Systems/System.Embedded.1/BootSources")
data/lib/idrac/client.rb CHANGED
@@ -12,15 +12,15 @@ module IDRAC
12
12
  attr_reader :host, :username, :password, :port, :use_ssl, :verify_ssl, :auto_delete_sessions, :session, :web
13
13
  attr_accessor :direct_mode, :verbosity, :retry_count, :retry_delay
14
14
 
15
- include PowerMethods
16
- include SessionMethods
15
+ include Power
16
+ include SessionUtils
17
17
  include Debuggable
18
- include JobMethods
19
- include LifecycleMethods
20
- include StorageMethods
21
- include SystemComponentMethods
22
- include VirtualMediaMethods
23
- include BootManagementMethods
18
+ include Jobs
19
+ include Lifecycle
20
+ include Storage
21
+ include System
22
+ include VirtualMedia
23
+ include Boot
24
24
 
25
25
  def initialize(host:, username:, password:, port: 443, use_ssl: true, verify_ssl: false, direct_mode: false, auto_delete_sessions: true, retry_count: 3, retry_delay: 1)
26
26
  @host = host
data/lib/idrac/jobs.rb CHANGED
@@ -2,7 +2,7 @@ require 'json'
2
2
  require 'colorize'
3
3
 
4
4
  module IDRAC
5
- module JobMethods
5
+ module Jobs
6
6
  # Get a list of jobs
7
7
  def jobs
8
8
  response = authenticated_request(:get, '/redfish/v1/Managers/iDRAC.Embedded.1/Jobs?$expand=*($levels=1)')
@@ -2,7 +2,7 @@ require 'json'
2
2
  require 'colorize'
3
3
 
4
4
  module IDRAC
5
- module LifecycleMethods
5
+ module Lifecycle
6
6
  # Check if the Lifecycle Controller is enabled
7
7
  def get_lifecycle_status
8
8
  # Try the standard Attributes endpoint first
data/lib/idrac/power.rb CHANGED
@@ -2,7 +2,7 @@ require 'json'
2
2
  require 'colorize'
3
3
 
4
4
  module IDRAC
5
- module PowerMethods
5
+ module Power
6
6
  def power_on(wait: true)
7
7
  # Login to iDRAC if needed
8
8
  login unless @session_id
data/lib/idrac/session.rb CHANGED
@@ -676,7 +676,7 @@ module IDRAC
676
676
  end
677
677
 
678
678
  # Module containing extracted session methods to be included in Client
679
- module SessionMethods
679
+ module SessionUtils
680
680
  def force_clear_sessions
681
681
  debug = ->(msg, level=1, color=:light_cyan) {
682
682
  verbosity = respond_to?(:verbosity) ? verbosity : 0
data/lib/idrac/storage.rb CHANGED
@@ -2,7 +2,7 @@ require 'json'
2
2
  require 'colorize'
3
3
 
4
4
  module IDRAC
5
- module StorageMethods
5
+ module Storage
6
6
  # Get storage controllers information
7
7
  def controller
8
8
  # Use the controllers method to get all controllers
data/lib/idrac/system.rb CHANGED
@@ -2,7 +2,7 @@ require 'json'
2
2
  require 'colorize'
3
3
 
4
4
  module IDRAC
5
- module SystemComponentMethods
5
+ module System
6
6
  # Get memory information
7
7
  def memory
8
8
  response = authenticated_request(:get, "/redfish/v1/Systems/System.Embedded.1/Memory?$expand=*($levels=1)")
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.3.2"
4
+ VERSION = "0.3.3"
5
5
  end
@@ -2,7 +2,7 @@ require 'json'
2
2
  require 'colorize'
3
3
 
4
4
  module IDRAC
5
- module VirtualMediaMethods
5
+ module VirtualMedia
6
6
  # Get current virtual media status
7
7
  def virtual_media
8
8
  response = authenticated_request(:get, "/redfish/v1/Managers/iDRAC.Embedded.1/VirtualMedia?$expand=*($levels=1)")
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.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Siegel