lib/beaker/host/unix/file.rb in beaker-4.38.1 vs lib/beaker/host/unix/file.rb in beaker-4.39.0

- old
+ new

@@ -114,11 +114,11 @@ case variant when /fedora|el|redhat|centos|cisco_nexus|cisco_ios_xr|opensuse|sles/ variant = 'el' if ['centos', 'redhat'].include?(variant) - variant = 'redhatfips' if self['packaging_platform'] =~ /redhatfips/ + variant = 'redhatfips' if self['packaging_platform']&.include?('redhatfips') if variant == 'cisco_nexus' variant = 'cisco-wrlinux' version = '5' end @@ -168,12 +168,11 @@ # # @raise [ArgumentError] If called on a host with a platform that's not Solaris # # @return [String] the text of the noask file def noask_file_text - variant, version, arch, codename = self['platform'].to_array - if variant == 'solaris' && version == '10' + if self['platform'].variant == 'solaris' && self['platform'].version == '10' noask = <<NOASK # Write the noask file to a temporary directory # please see man -s 4 admin for details about this file: # http://www.opensolarisforum.org/man/man4/admin.html # @@ -215,9 +214,9 @@ # # @param [String] scp_file_actual File path to actual SCP'd file on host # @param [String] scp_file_target File path to target SCP location on host # # @return nil - def scp_post_operations(scp_file_actual, scp_file_target) + def scp_post_operations(_scp_file_actual, _scp_file_target) nil end end