Sha256: f32b62611d10c9a3be99c9ec6660eccf81438171b60084ff80a0df88df8eac07
Contents?: true
Size: 929 Bytes
Versions: 110
Compression:
Stored size: 929 Bytes
Contents
module Actions module Katello module RepositorySet class DisableRepository < Actions::EntryAction def humanized_name _("Disable") end def plan(product, content, options) repository = repository_mapper(product, content, options).find_repository if repository action_subject(repository) plan_action(Repository::Destroy, repository) else fail ::Katello::Errors::NotFound, _('Repository not found') end end private def repository_mapper(product, content, substitutions) ::Katello::Candlepin::RepositoryMapper.new(product, content, substitutions) end end end end end
Version data entries
110 entries across 110 versions & 1 rubygems