Sha256: fc713782f9a0d7b82ea609557e5c2bffe3e1cb08ea6e94c9b0ce328f4c182bc8

Contents?: true

Size: 546 Bytes

Versions: 6

Compression:

Stored size: 546 Bytes

Contents

module Actions
  module Pulp3
    class ContentMigration < Pulp3::AbstractAsyncTask
      def plan(smart_proxy = SmartProxy.pulp_master)
        sequence do
          plan_self(smart_proxy_id: smart_proxy.id)
          plan_action(Actions::Pulp3::ImportMigration)
        end
      end

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
katello-3.16.2 app/lib/actions/pulp3/content_migration.rb
katello-3.16.1.2 app/lib/actions/pulp3/content_migration.rb
katello-3.16.1.1 app/lib/actions/pulp3/content_migration.rb
katello-3.16.1 app/lib/actions/pulp3/content_migration.rb
katello-3.17.0.rc1 app/lib/actions/pulp3/content_migration.rb
katello-3.16.0 app/lib/actions/pulp3/content_migration.rb