Sha256: 65f56ad7c7131035f1427b6571e1b3b2edf326c2a365a1933276a734d7551ec8

Contents?: true

Size: 419 Bytes

Versions: 9

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

require "solidus_friendly_promotions/promotion_migrator"

namespace :solidus_friendly_promotions do
  desc "Migrate Spree Promotions to Friendly Promotions using a map"
  task migrate_existing_promotions: :environment do
    require "solidus_friendly_promotions/promotion_map"

    SolidusFriendlyPromotions::PromotionMigrator.new(SolidusFriendlyPromotions::PROMOTION_MAP).call
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
solidus_friendly_promotions-1.9.3 lib/tasks/solidus_friendly_promotions/migrate_existing_promotions.rake
solidus_friendly_promotions-1.9.2 lib/tasks/solidus_friendly_promotions/migrate_existing_promotions.rake
solidus_friendly_promotions-1.9.1 lib/tasks/solidus_friendly_promotions/migrate_existing_promotions.rake
solidus_friendly_promotions-1.9.0 lib/tasks/solidus_friendly_promotions/migrate_existing_promotions.rake
solidus_friendly_promotions-1.0.0 lib/tasks/solidus_friendly_promotions/migrate_existing_promotions.rake
solidus_friendly_promotions-1.0.0.rc.3 lib/tasks/solidus_friendly_promotions/migrate_existing_promotions.rake
solidus_friendly_promotions-1.0.0.rc.2 lib/tasks/solidus_friendly_promotions/migrate_existing_promotions.rake
solidus_friendly_promotions-1.0.0.rc.1 lib/tasks/solidus_friendly_promotions/migrate_existing_promotions.rake
solidus_friendly_promotions-1.0.0.pre lib/tasks/solidus_friendly_promotions/migrate_existing_promotions.rake