Sha256: be9812ec6e6c3059f3df66e28dd2b0ac3dafff238d7a50ca14e8109210ccd15f
Contents?: true
Size: 960 Bytes
Versions: 1
Compression:
Stored size: 960 Bytes
Contents
require 'rails/generators' namespace :spree_alipay do desc "Copies all migrations and assets (NOTE: This will be obsolete with Rails 3.1)" task :install do Rake::Task['spree_alipay:install:migrations'].invoke Rake::Task['spree_alipay: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::Core::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::Core::FileUtilz.mirror_files(source, destination) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_alipay-1.2 | lib/tasks/install.rake |