(CONT-173) - Updating deprecated facter instances cont-173/main/updating_deprecated_facter
authorjordanbreen28 <jordan.breen@perforce.com>
Thu, 13 Oct 2022 12:10:57 +0000 (13:10 +0100)
committerjordanbreen28 <jordan.breen@perforce.com>
Fri, 14 Oct 2022 12:17:46 +0000 (13:17 +0100)
commit1442e42b3591b50887351a50b7a4bef2b16038ab
treef200c4c4d3a430e58e37a9dbc88ecd3dc8ad895f
parent40ec6fcf4f5de1841db48f13f6fc1b8a0dc45c72
(CONT-173) - Updating deprecated facter instances
Prior to this PR, this module contained instances of Facter::Util::Resolution.exec and Facter::Util::Resolution.which, which are deprecated.
This PR aims to replace these exec helpers with their supported Facter::Core::Execution counterparts.

This PR:
- Replaced all Facter::Util::Resolution instances with corresponding Facter::Core::Execution exec helpers

Fix rubucop linting error

This commit corrects an error identified by rubocop in spec testing.
12 files changed:
lib/facter/apt_updates.rb
manifests/source.pp
spec/unit/facter/apt_dist_has_updates_spec.rb
spec/unit/facter/apt_dist_package_security_updates_spec.rb
spec/unit/facter/apt_dist_package_updates_spec.rb
spec/unit/facter/apt_dist_security_updates_spec.rb
spec/unit/facter/apt_dist_updates_spec.rb
spec/unit/facter/apt_has_updates_spec.rb
spec/unit/facter/apt_package_security_updates_spec.rb
spec/unit/facter/apt_package_updates_spec.rb
spec/unit/facter/apt_security_updates_spec.rb
spec/unit/facter/apt_updates_spec.rb