Sha256: b728b676130b42fe844c5e762f089b85c612fedee57c54e06248dc9f06632c25
Contents?: true
Size: 930 Bytes
Versions: 34
Compression:
Stored size: 930 Bytes
Contents
namespace :<%= file_name %> do desc "Copies all migrations and assets (NOTE: This will be obsolete with Rails 3.1)" task :install do Rake::Task['<%= file_name %>:install:migrations'].invoke Rake::Task['<%= file_name %>: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
34 entries across 34 versions & 8 rubygems