Sha256: 5ee1b6efd23f45473bf944ecd3cfb931565139774c5d8f8fb733cc00a990ac7b

Contents?: true

Size: 1.27 KB

Versions: 41

Compression:

Stored size: 1.27 KB

Contents

# frozen_string_literal: true

require "alchemy/upgrader"
require "alchemy/version"

namespace :alchemy do
  desc "Upgrades your app to AlchemyCMS v#{Alchemy::VERSION}."
  task upgrade: [
    "alchemy:upgrade:prepare",
    "alchemy:upgrade:7.0:run"
  ] do
    Alchemy::Upgrader.display_todos
  end

  namespace :upgrade do
    desc "Alchemy Upgrader: Prepares the database and updates Alchemys configuration file."
    task prepare: [
      "alchemy:upgrade:database",
      "alchemy:upgrade:config"
    ]

    desc "Alchemy Upgrader: Prepares the database."
    task database: [
      "alchemy:install:migrations",
      "db:migrate"
    ]

    desc "Alchemy Upgrader: Copy configuration file."
    task config: [:environment] do
      Alchemy::Upgrader.copy_new_config_file
    end

    desc "Upgrade Alchemy to v7.0"
    task "7.0" => [
      "alchemy:upgrade:prepare",
      "alchemy:upgrade:7.0:run"
    ] do
      Alchemy::Upgrader.display_todos
    end

    namespace "7.0" do
      task "run" => [
        "alchemy:upgrade:7.0:remove_admin_entrypoint"
      ]

      desc "Remove alchemy admin entrypoint"
      task remove_admin_entrypoint: [:environment] do
        puts "removing npm_package..."
        Alchemy::Upgrader::SevenPointZero.remove_admin_entrypoint
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
alchemy_cms-7.2.7 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.2.6 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.2.5 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.1.12 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.0.15 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.2.4 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.1.11 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.2.3 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.1.10 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.2.2 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.1.9 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.0.14 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.2.1 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.0.13 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.1.8 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.1.7 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.0.12 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.0.11 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.1.6 lib/tasks/alchemy/upgrade.rake
alchemy_cms-7.1.5 lib/tasks/alchemy/upgrade.rake