Sha256: 96cc2322235ee52bd15a7233b21e703e7c5887d5a03a71977b67a4fc44230b70

Contents?: true

Size: 613 Bytes

Versions: 10

Compression:

Stored size: 613 Bytes

Contents

class Cms::Fortress::UpgradeGenerator < Rails::Generators::Base
  source_root File.expand_path('../../../../../..', __FILE__)

  def generate_migrations
    rake("cms_fortress_engine:install:migrations")
  end

  def copy_files
    log 'Copying files...'
    files = [
      'config/cms/fortress/global_settings.yml'
    ]
    files.each do |file|
      copy_file file, file
    end
  end

  def done
    puts "\r\n\r\n!!! IMPORTANT NOTE: Review your existing users since they set to super users as default. Review and assign site roles accordingly."
    puts "Upgrade complete..."
    puts "\r\n\r\n"
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cms-fortress-1.3.6 lib/generators/cms/fortress/upgrade/upgrade_generator.rb
cms-fortress-1.3.5 lib/generators/cms/fortress/upgrade/upgrade_generator.rb
cms-fortress-1.3.4 lib/generators/cms/fortress/upgrade/upgrade_generator.rb
cms-fortress-1.3.3 lib/generators/cms/fortress/upgrade/upgrade_generator.rb
cms-fortress-1.3.2 lib/generators/cms/fortress/upgrade/upgrade_generator.rb
cms-fortress-1.3.1 lib/generators/cms/fortress/upgrade/upgrade_generator.rb
cms-fortress-1.3.0 lib/generators/cms/fortress/upgrade/upgrade_generator.rb
cms-fortress-1.3.0.rc3 lib/generators/cms/fortress/upgrade/upgrade_generator.rb
cms-fortress-1.3.0.rc2 lib/generators/cms/fortress/upgrade/upgrade_generator.rb
cms-fortress-1.3.0.rc1 lib/generators/cms/fortress/upgrade/upgrade_generator.rb