Sha256: e0df6494066d89ee3447db2e63d40f5485a2986c3ae0389c0777a37e2b70f56d

Contents?: true

Size: 914 Bytes

Versions: 5

Compression:

Stored size: 914 Bytes

Contents

namespace :spree_core do
  desc "Copies all migrations and assets (NOTE: This will be obsolete with Rails 3.1)"
  task :install do
    Rake::Task['spree_core:install:migrations'].invoke
    Rake::Task['spree_core:install:assets'].invoke
  end

  namespace :install do

    desc "Copies all migrations (NOTE: This will be obsolete with Rails 3.1)"
    task :migrations do
      source = File.join(File.dirname(__FILE__), '..', '..', 'db')
      destination = File.join(Rails.root, 'db')
      Spree::FileUtilz.mirror_files(source, destination)
    end

    desc "Copies all assets (NOTE: This will be obsolete with Rails 3.1)"
    task :assets do
      source = File.join(File.dirname(__FILE__), '..', '..', 'public')
      destination = File.join(Rails.root, 'public')
      puts "INFO: Mirroring assets from #{source} to #{destination}"
      Spree::FileUtilz.mirror_files(source, destination)
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_core-0.40.4 lib/tasks/install.rake
spree_core-0.40.3 lib/tasks/install.rake
spree_core-0.40.2 lib/tasks/install.rake
spree_core-0.40.1 lib/tasks/install.rake
spree_core-0.40.0 lib/tasks/install.rake