Class: Actions::Katello::ContentView::CapsuleSync

Inherits:
Base
  • Object
show all
Defined in:
app/lib/actions/katello/content_view/capsule_sync.rb

Instance Method Summary collapse

Instance Method Details

#humanized_nameObject



5
6
7
# File 'app/lib/actions/katello/content_view/capsule_sync.rb', line 5

def humanized_name
  _("Sync Content View on Smart Proxy(ies)")
end

#plan(content_view, environment) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
# File 'app/lib/actions/katello/content_view/capsule_sync.rb', line 9

def plan(content_view, environment)
  sequence do
    concurrence do
      smart_proxies = SmartProxy.with_environment(environment)
      unless smart_proxies.blank?
        plan_action(::Actions::BulkAction, ::Actions::Katello::CapsuleContent::Sync, smart_proxies.sort,
                    :content_view_id => content_view.id, :environment_id => environment.id)
      end
    end
  end
end