Sha256: 1c4e2cbe6d0fbb96ba0464f9532dda9f3abc94bfda138007af562597221d8db3
Contents?: true
Size: 955 Bytes
Versions: 15
Compression:
Stored size: 955 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, :planned_destroy => true) 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
15 entries across 15 versions & 1 rubygems