Class: Actions::Katello::Repository::CapsuleSync
- Inherits:
-
Base
- Object
- Base
- Actions::Katello::Repository::CapsuleSync
- Defined in:
- app/lib/actions/katello/repository/capsule_sync.rb
Instance Method Summary collapse
Instance Method Details
#humanized_name ⇒ Object
5 6 7 |
# File 'app/lib/actions/katello/repository/capsule_sync.rb', line 5 def humanized_name _("Sync Repository on Smart Proxy(ies)") end |
#plan(repo) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/lib/actions/katello/repository/capsule_sync.rb', line 9 def plan(repo) if repo.node_syncable? concurrence do smart_proxies = ::SmartProxy.with_environment(repo.environment) unless smart_proxies.blank? plan_action(::Actions::BulkAction, ::Actions::Katello::CapsuleContent::Sync, smart_proxies, :repository_id => repo.id) end end end end |