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