Sha256: 47f460502b3a6d9c7a10b2580108f4c63352b5d11eaaaf60f2f5f64c16a3d1aa

Contents?: true

Size: 1.19 KB

Versions: 21

Compression:

Stored size: 1.19 KB

Contents

require_relative 'tasks/three_point_two_task'

module Alchemy
  class Upgrader::ThreePointTwo < Upgrader
    class << self
      def upgrade_acts_as_taggable_on_migrations
        desc 'Install and patch acts_as_taggable_on migrations.'
        if !`bundle exec rake railties:install:migrations FROM=acts_as_taggable_on_engine`.empty?
          Alchemy::Upgrader::Tasks::ThreePointTwoTask.new.patch_acts_as_taggable_on_migrations
        end
        `bundle exec rake db:migrate`
      end

      def inject_seeder
        desc 'Add Alchemy seeder to `db/seeds.rb` file.'
        Alchemy::Upgrader::Tasks::ThreePointTwoTask.new.inject_seeder
      end

      def alchemy_3_2_todos
        notice = <<-NOTE

  Capistrano 2 deploy script removed
  ----------------------------------

  The Capistrano 2 based deploy script has been removed and replaced by an Capistrano 3 extension.

  Please update your Gemfile:

  group :development do
    gem 'capistrano-alchemy', github: 'AlchemyCMS/capistrano-alchemy', branch: 'master', require: false
  end

  For more information please visit https://github.com/AlchemyCMS/capistrano-alchemy.

  NOTE
        todo notice, 'Alchemy v3.2 changes'
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
alchemy_cms-4.0.6 lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-3.6.7 lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-3.6.6 lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-4.0.5 lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-4.0.4 lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-4.0.3 lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-3.6.5 lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-4.0.2 lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-4.0.1 lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-3.6.4 lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-4.0.0 lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-3.6.3 lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-3.6.2 lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-4.0.0.rc2 lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-4.0.0.rc1 lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-3.6.1 lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-4.0.0.beta lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-3.6.0 lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-3.5.0 lib/alchemy/upgrader/three_point_two.rb
alchemy_cms-3.5.0.rc2 lib/alchemy/upgrader/three_point_two.rb