Sha256: a9ebbcc88cddcef076e944466b0b5093cfbf8ff6a4998a11f44df85630fcc91a
Contents?: true
Size: 739 Bytes
Versions: 25
Compression:
Stored size: 739 Bytes
Contents
module Actions module Katello module ContentView class CapsuleSync < Actions::Base def humanized_name _("Sync Content View on Smart Proxy(ies)") end def plan(content_view, environment) sequence do concurrence do smart_proxies = ::Katello::CapsuleContent.with_environment(environment).map { |capsule| capsule.capsule } unless smart_proxies.blank? plan_action(::Actions::BulkAction, ::Actions::Katello::CapsuleContent::Sync, smart_proxies, :content_view_id => content_view.id, :environment_id => environment.id) end end end end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems