Class: RedfishTools::Cli::Record

Inherits:
Object
  • Object
show all
Defined in:
lib/redfish_tools/cli/record.rb

Instance Method Summary collapse

Constructor Details

#initialize(service, path, username, password) ⇒ Record

Returns a new instance of Record.



9
10
11
12
13
14
# File 'lib/redfish_tools/cli/record.rb', line 9

def initialize(service, path, username, password)
  @service = service
  @path = path
  @username = username
  @password = password
end

Instance Method Details

#runObject



16
17
18
19
20
# File 'lib/redfish_tools/cli/record.rb', line 16

def run
  client = RedfishClient.new(@service, verify: false)
  client.(@username, @password)
  Recorder.new(client, @path).record
end