Method: Inspec::Resources::Package#info

Defined in:
lib/resources/package.rb

#infoObject

returns the package description



65
66
67
68
69
70
71
72
# File 'lib/resources/package.rb', line 65

def info
  return @cache if !@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