Sha256: 88278e8b3a3e0b1c558fb7e00f7dfa7e3e869b54997a60e0a42ce9ec3e82fba9

Contents?: true

Size: 695 Bytes

Versions: 95

Compression:

Stored size: 695 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 = 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
      end
    end
  end
end

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
katello-4.9.2 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.8.4 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.9.1 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.8.3 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.9.0 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.7.6 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.8.2 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.9.0.rc2 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.9.0.rc1 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.8.1 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.7.5 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.8.0 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.8.0.rc2 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.7.4 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.8.0.rc1 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.7.3 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.7.2 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.7.1 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.6.2.1 app/lib/actions/katello/content_view/capsule_sync.rb
katello-4.6.2 app/lib/actions/katello/content_view/capsule_sync.rb