class Inspec::Resources::WindowsHotfix

def initialize(hotfix_id = nil)

def initialize(hotfix_id = nil)
  @id = hotfix_id.upcase
  @content = nil
  os = inspec.os
  return skip_resource 'The `windows_hotfix` resource is not a feature of your OS.' unless os.windows?
  query = "get-hotfix -id #{@id}"
  cmd = inspec.powershell(query)
  @content = cmd.stdout
end

def installed?

def installed?
  return false if @content.nil?
  @content.include?(@id)
end

def to_s

def to_s
  "Windows Hotfix #{@id}"
end