Sha256: 84582e1922f1724fe3a9bb3796ef29ed9ed71b65df00e10ce3796604d156d87f

Contents?: true

Size: 750 Bytes

Versions: 13

Compression:

Stored size: 750 Bytes

Contents

module Actions
  module Katello
    module ContentView
      class CapsuleGenerateAndSync < 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

13 entries across 13 versions & 1 rubygems

Version Path
katello-3.5.2 app/lib/actions/katello/content_view/capsule_generate_and_sync.rb
katello-3.6.0 app/lib/actions/katello/content_view/capsule_generate_and_sync.rb
katello-3.6.0.1.rc2 app/lib/actions/katello/content_view/capsule_generate_and_sync.rb
katello-3.6.0.rc2 app/lib/actions/katello/content_view/capsule_generate_and_sync.rb
katello-3.6.0.rc1 app/lib/actions/katello/content_view/capsule_generate_and_sync.rb
katello-3.5.1.1 app/lib/actions/katello/content_view/capsule_generate_and_sync.rb
katello-3.5.1 app/lib/actions/katello/content_view/capsule_generate_and_sync.rb
katello-3.5.0.1 app/lib/actions/katello/content_view/capsule_generate_and_sync.rb
katello-3.5.0 app/lib/actions/katello/content_view/capsule_generate_and_sync.rb
katello-3.5.0.rc2 app/lib/actions/katello/content_view/capsule_generate_and_sync.rb
katello-3.5.0.rc1 app/lib/actions/katello/content_view/capsule_generate_and_sync.rb
katello-3.4.5 app/lib/actions/katello/content_view/capsule_generate_and_sync.rb
katello-3.4.4 app/lib/actions/katello/content_view/capsule_generate_and_sync.rb