From 56133a86c37748c167e89959e2a8588dd3f3dd24 Mon Sep 17 00:00:00 2001 From: Michael Hashizume Date: Wed, 7 Feb 2024 15:50:04 -0800 Subject: [PATCH] Remove deprecated method This commit removes the deprecated get_puppet_collection method. --- lib/beaker-puppet/install_utils/puppet_utils.rb | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lib/beaker-puppet/install_utils/puppet_utils.rb b/lib/beaker-puppet/install_utils/puppet_utils.rb index 37b754f..96d6e45 100644 --- a/lib/beaker-puppet/install_utils/puppet_utils.rb +++ b/lib/beaker-puppet/install_utils/puppet_utils.rb @@ -65,23 +65,6 @@ def remove_puppet_paths_on(hosts) end end - # Given an agent_version, return the puppet collection associated with that agent version - # - # @param [String] agent_version version string or 'latest' - # @deprecated This method returns 'PC1' as the latest puppet collection; - # this is incorrect. Use {#puppet_collection_for} instead. - def get_puppet_collection(agent_version = 'latest') - collection = 'PC1' - if agent_version != 'latest' - if !version_is_less(agent_version, '5.5.4') and version_is_less(agent_version, '5.99') - collection = 'puppet5' - elsif !version_is_less(agent_version, '5.99') - collection = 'puppet6' - end - end - collection - end - # Determine the puppet collection that matches a given package version. The package # must be one of # * :puppet_agent (you can get this version from the `aio_agent_version_fact`)