Method: Inspec::Resources::Package#info

Defined in:
lib/inspec/resources/package.rb

#infoObject

returns the package description



67
68
69
70
71
72
73
74
75
# File 'lib/inspec/resources/package.rb', line 67

def info
  return @cache unless @cache.nil?
  # All `@pkgman.info` methods return `{}`. This matches that
  # behavior if `@pkgman` can't be determined, thus avoiding the
  # `undefined method 'info' for nil:NilClass` error
  return {} if @pkgman.nil?

  @pkgman.info(@package_name)
end