Class: Actions::Katello::RepositorySet::DisableRepository
- Inherits:
-
EntryAction
- Object
- EntryAction
- Actions::Katello::RepositorySet::DisableRepository
- Defined in:
- app/lib/actions/katello/repository_set/disable_repository.rb
Instance Method Summary collapse
Instance Method Details
#humanized_name ⇒ Object
5 6 7 |
# File 'app/lib/actions/katello/repository_set/disable_repository.rb', line 5 def humanized_name _("Disable") end |
#plan(product, content, options) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/lib/actions/katello/repository_set/disable_repository.rb', line 9 def plan(product, content, ) if repository = repository_mapper(product, content, , [:registry_name]).find_repository action_subject(repository) plan_action(Repository::Destroy, repository) else fail ::Katello::Errors::NotFound, _('Repository not found') end end |