Sha256: be51cdd501e8853cefe4d0fafbe3692a5f5b10943c50cb5ad5346cc438c18ac6

Contents?: true

Size: 776 Bytes

Versions: 20

Compression:

Stored size: 776 Bytes

Contents

module Actions
  module Pulp3
    class ContentMigration < Pulp3::AbstractAsyncTask
      include Helpers::Presenter

      def plan(smart_proxy, options)
        sequence do
          action = plan_self(smart_proxy_id: smart_proxy.id)
          plan_action(Actions::Pulp3::ImportMigration, options.merge(:dependency => action.output))
        end
      end

      def invoke_external_task
        migration_service = ::Katello::Pulp3::Migration.new(smart_proxy)
        migration_service.create_and_run_migrations
      end

      def humanized_name
        _("Content Migration")
      end

      def presenter
        Actions::Pulp3::ContentMigrationPresenter.new(self)
      end

      def rescue_strategy
        Dynflow::Action::Rescue::Skip
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
katello-4.0.3 app/lib/actions/pulp3/content_migration.rb
katello-3.18.5 app/lib/actions/pulp3/content_migration.rb
katello-4.0.2.1 app/lib/actions/pulp3/content_migration.rb
katello-4.0.2 app/lib/actions/pulp3/content_migration.rb
katello-3.18.4 app/lib/actions/pulp3/content_migration.rb
katello-4.0.1.2 app/lib/actions/pulp3/content_migration.rb
katello-3.18.3.1 app/lib/actions/pulp3/content_migration.rb
katello-4.0.1.1 app/lib/actions/pulp3/content_migration.rb
katello-3.18.3 app/lib/actions/pulp3/content_migration.rb
katello-4.0.1 app/lib/actions/pulp3/content_migration.rb
katello-4.0.0 app/lib/actions/pulp3/content_migration.rb
katello-4.0.0.rc3.1 app/lib/actions/pulp3/content_migration.rb
katello-4.0.0.rc3 app/lib/actions/pulp3/content_migration.rb
katello-3.18.2.1 app/lib/actions/pulp3/content_migration.rb
katello-3.18.2 app/lib/actions/pulp3/content_migration.rb
katello-4.0.0.rc2 app/lib/actions/pulp3/content_migration.rb
katello-3.18.1.1 app/lib/actions/pulp3/content_migration.rb
katello-4.0.0.rc1 app/lib/actions/pulp3/content_migration.rb
katello-3.18.1 app/lib/actions/pulp3/content_migration.rb
katello-3.18.0 app/lib/actions/pulp3/content_migration.rb