theforeman/foreman_maintain

View on GitHub
definitions/procedures/packages/unlock_versions.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Procedures::Packages
  class UnlockVersions < ForemanMaintain::Procedure
    metadata do
      description 'Unlock packages'
      confine do
        package_manager.version_locking_supported?
      end
    end

    def run
      package_manager.unlock_versions
    end
  end
end