Sha256: 89e364c145a7843ac599bc8badd3040b9dae8426b840587224914b35c67f72ea

Contents?: true

Size: 1009 Bytes

Versions: 28

Compression:

Stored size: 1009 Bytes

Contents

module Actions
  module Katello
    module Organization
      class ManifestImport < Actions::AbstractAsyncTask
        middleware.use Actions::Middleware::PropagateCandlepinErrors

        def plan(organization, path, force)
          action_subject organization
          manifest_update = organization.products.redhat.any?

          sequence do
            plan_action(Candlepin::Owner::Import,
                        :label => organization.label,
                        :path => path,
                        :force => force)
            plan_action(Candlepin::Owner::ImportProducts, :organization_id => organization.id)

            if manifest_update && SETTINGS[:katello][:use_pulp]
              organization.products.redhat.flat_map(&:repositories).each do |repo|
                plan_action(Katello::Repository::RefreshRepository, repo)
              end
            end
          end
        end

        def humanized_name
          _("Import Manifest")
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
katello-3.5.2 app/lib/actions/katello/organization/manifest_import.rb
katello-3.6.0 app/lib/actions/katello/organization/manifest_import.rb
katello-3.6.0.1.rc2 app/lib/actions/katello/organization/manifest_import.rb
katello-3.6.0.rc2 app/lib/actions/katello/organization/manifest_import.rb
katello-3.6.0.rc1 app/lib/actions/katello/organization/manifest_import.rb
katello-3.5.1.1 app/lib/actions/katello/organization/manifest_import.rb
katello-3.5.1 app/lib/actions/katello/organization/manifest_import.rb
katello-3.5.0.1 app/lib/actions/katello/organization/manifest_import.rb
katello-3.5.0 app/lib/actions/katello/organization/manifest_import.rb
katello-3.5.0.rc2 app/lib/actions/katello/organization/manifest_import.rb
katello-3.5.0.rc1 app/lib/actions/katello/organization/manifest_import.rb
katello-3.4.5 app/lib/actions/katello/organization/manifest_import.rb
katello-3.4.4 app/lib/actions/katello/organization/manifest_import.rb
katello-3.4.2 app/lib/actions/katello/organization/manifest_import.rb
katello-3.4.1 app/lib/actions/katello/organization/manifest_import.rb
katello-3.4.0.2 app/lib/actions/katello/organization/manifest_import.rb
katello-3.4.0.1 app/lib/actions/katello/organization/manifest_import.rb
katello-3.3.2 app/lib/actions/katello/organization/manifest_import.rb
katello-3.4.0 app/lib/actions/katello/organization/manifest_import.rb
katello-3.4.0.rc2 app/lib/actions/katello/organization/manifest_import.rb