Method: Inspec::Resources::Package#info
- Defined in:
- lib/resources/package.rb
#info ⇒ Object
returns the package description
66 67 68 69 70 71 72 73 |
# File 'lib/resources/package.rb', line 66 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 |