Sha256: 0ccc4fd24dd7d300dbf3d6957fd8dad0e592efe16e2573837b096f226be079ff
Contents?: true
Size: 891 Bytes
Versions: 3
Compression:
Stored size: 891 Bytes
Contents
namespace :cms do desc "Copies all migrations and assets (NOTE: This will be obsolete with Rails 3.1)" task :install do Rake::Task['cms:install:migrations'].invoke Rake::Task['cms: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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree-cms-0.2.1 | lib/tasks/install.rake |
spree-cms-0.2.0 | lib/tasks/install.rake |
spree-cms-0.1.0 | lib/tasks/install.rake |