Sha256: cc4a5825f36737ea90aa21f0df6fa05ad771a7511d3e70bc70dbe0b1e3761e49

Contents?: true

Size: 809 Bytes

Versions: 38

Compression:

Stored size: 809 Bytes

Contents

require 'alchemy/upgrader'
require 'alchemy/version'

namespace :alchemy do

  desc "Upgrades database content to Alchemy CMS v#{Alchemy::VERSION} (Set UPGRADE env variable to only run a specific task)."
  task :upgrade => :environment do
    Alchemy::Upgrader.run!
  end

  namespace :upgrade do
    desc "List all available upgrade tasks."
    task :list => [:environment] do
      puts "\nAvailable upgrade tasks"
      puts "-----------------------\n"
      methods = Alchemy::Upgrader.all_upgrade_tasks
      if methods.any?
        methods.each { |method| puts method }
        puts "\nUsage:"
        puts "------"
        puts "Run one or more tasks with `bundle exec rake alchemy:upgrade UPGRADE=task_name1,task_name2`\n"
      else
        puts "No upgrades available."
      end
    end
  end

end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 lib/tasks/alchemy/upgrade.rake
alchemy_cms-3.1.3 lib/tasks/alchemy/upgrade.rake
lc_alchemy_cms-3.2.1 lib/tasks/alchemy/upgrade.rake
lc_alchemy_cms-3.2.0 lib/tasks/alchemy/upgrade.rake
alchemy_cms-3.2.0 lib/tasks/alchemy/upgrade.rake
alchemy_cms-3.2.0.rc1 lib/tasks/alchemy/upgrade.rake
alchemy_cms-3.2.0.beta lib/tasks/alchemy/upgrade.rake
alchemy_cms-2.9.1 lib/tasks/alchemy/upgrade.rake
alchemy_cms-3.1.1 lib/tasks/alchemy/upgrade.rake
alchemy_cms-3.0.4 lib/tasks/alchemy/upgrade.rake
alchemy_cms-3.1.0 lib/tasks/alchemy/upgrade.rake
alchemy_cms-3.1.0.rc3 lib/tasks/alchemy/upgrade.rake
alchemy_cms-3.1.0.rc2 lib/tasks/alchemy/upgrade.rake
alchemy_cms-3.1.0.rc1 lib/tasks/alchemy/upgrade.rake
alchemy_cms-3.1.0.beta6 lib/tasks/alchemy/upgrade.rake
alchemy_cms-3.1.0.beta5 lib/tasks/alchemy/upgrade.rake
alchemy_cms-3.1.0.beta4 lib/tasks/alchemy/upgrade.rake
alchemy_cms-3.0.3 lib/tasks/alchemy/upgrade.rake
alchemy_cms-3.1.0.beta3 lib/tasks/alchemy/upgrade.rake
alchemy_cms-3.1.0.beta2 lib/tasks/alchemy/upgrade.rake