Sha256: 65bfd092f6fc1f4e6c751b242fc25bf18f64a2215ae76eee62689135aafa01b1

Contents?: true

Size: 884 Bytes

Versions: 7

Compression:

Stored size: 884 Bytes

Contents

namespace :spree do
  desc "Assistance for upgrading an existing Spree deployment.  WARNING: Will replace certain javascript and stylesheet assets."
  task :upgrade => :environment do
                                   
    Spree::FileUtilz.mirror_files "#{SPREE_ROOT}/public/javascripts", "#{RAILS_ROOT}/public/javascripts"
    Spree::FileUtilz.mirror_files "#{SPREE_ROOT}/public/stylesheets", "#{RAILS_ROOT}/public/stylesheets"
    Spree::FileUtilz.mirror_files "#{SPREE_ROOT}/public/images", "#{RAILS_ROOT}/public/images"
    Spree::FileUtilz.mirror_files "#{SPREE_ROOT}/config/initializers", "#{RAILS_ROOT}/config/initializers"
    FileUtils.cp("#{SPREE_ROOT}/config/spree_permissions.yml", "#{RAILS_ROOT}/config")
    FileUtils.cp("#{SPREE_ROOT}/config/routes.rb", "#{RAILS_ROOT}/config")
    FileUtils.cp("#{SPREE_ROOT}/config/boot.rb", "#{RAILS_ROOT}/config")    
  end
end  

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
kdmny-spree-0.0.1 lib/tasks/upgrade.rake
spree-0.8.4 lib/tasks/upgrade.rake
spree-0.8.5 lib/tasks/upgrade.rake
spree-0.8.0 lib/tasks/upgrade.rake
spree-0.8.1 lib/tasks/upgrade.rake
spree-0.8.2 lib/tasks/upgrade.rake
spree-0.8.3 lib/tasks/upgrade.rake