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

Version Path
katello-3.11.2 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.10.2 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.10.1.1 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.10.1 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.11.1 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.11.0 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.11.0.rc2 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.11.0.rc1 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.10.0 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.10.0.rc1.1 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.9.1 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.10.0.rc1 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.9.0 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.8.1 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.9.0.rc2 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.9.0.rc1 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.7.1.1 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.7.1 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.8.0 app/lib/actions/katello/content_view/capsule_sync.rb
katello-3.8.0.rc3 app/lib/actions/katello/content_view/capsule_sync.rb