Class: Inspec::Resources::BffPkg
- Inherits:
-
PkgManagement
- Object
- PkgManagement
- Inspec::Resources::BffPkg
- Defined in:
- lib/resources/package.rb
Overview
AIX
Instance Attribute Summary
Attributes inherited from PkgManagement
Instance Method Summary collapse
Methods inherited from PkgManagement
Constructor Details
This class inherits a constructor from Inspec::Resources::PkgManagement
Instance Method Details
#info(package_name) ⇒ Object
197 198 199 200 201 202 203 204 205 206 207 208 |
# File 'lib/resources/package.rb', line 197 def info(package_name) cmd = inspec.command("lslpp -cL #{package_name}") return nil if cmd.exit_status.to_i != 0 bff_pkg = cmd.stdout.split("\n").last.split(':') { name: bff_pkg[1], installed: true, version: bff_pkg[2], type: 'bff', } end |