Sha256: 3de3878369d5ec6f159f049fe1190bbbf3e2119f54725b47d9233ed898e0fa97
Contents?: true
Size: 564 Bytes
Versions: 9
Compression:
Stored size: 564 Bytes
Contents
class Specinfra::Command::Windows::Base::HotFix < Specinfra::Command::Windows::Base def check_is_installed(description, hot_fix_id=nil) hot_fix_id_match = /(KB\d+)/i.match(description) hot_fix_id = hot_fix_id_match ? hot_fix_id_match[1] : description if hot_fix_id.nil? args = [ '-description', "'#{description}'", '-hotFixId', "'#{hot_fix_id}'" ] cmd = "(FindInstalledHotFix #{args.join(' ')})" Backend::PowerShell::Command.new do using 'find_installed_hot_fix.ps1' exec "#{cmd} -eq $true" end end end
Version data entries
9 entries across 9 versions & 1 rubygems