Sha256: b00171ce9998eb6e4aa2d634af6e2594662c4dd3fa04a30c33a6acb55588ca7b

Contents?: true

Size: 949 Bytes

Versions: 8

Compression:

Stored size: 949 Bytes

Contents

namespace :cms do
  desc 'Migrate the CMS'
  task :migrate => :environment do
    Scrivito::Migrations::Migrator.new.migrate
  end

  namespace :migrate do
    desc 'Publish the CMS migration workspace'
    task :publish => :environment do
      begin
        Scrivito::Migrations::Migrator.new.publish

        puts 'Migration workspace published.'
      rescue Scrivito::ScrivitoError => exception
        puts exception.message
      end
    end

    desc 'Delete the CMS migration workspace'
    task :abort => :environment do
      begin
        Scrivito::Migrations::Migrator.new.abort

        puts 'Migration workspace deleted.'
      rescue Scrivito::ScrivitoError => exception
        puts exception.message
      end
    end

    desc 'Copy CMS migrations from Engines. Specify Engines to use with FROM=engine1,engine2'
    task :install => :environment do
      Scrivito::Migrations::Installer.new(ENV['FROM']).install
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
scrivito_sdk-0.18.1 lib/tasks/migration.rake
scrivito_sdk-0.18.0 lib/tasks/migration.rake
scrivito_sdk-0.17.0 lib/tasks/migration.rake
scrivito_sdk-0.16.0 lib/tasks/migration.rake
scrivito_sdk-0.15.0 lib/tasks/migration.rake
scrivito_sdk-0.14.0 lib/tasks/migration.rake
scrivito_sdk-0.13.0 lib/tasks/migration.rake
scrivito_sdk-0.12.0 lib/tasks/migration.rake