spree_paypal_express/lib/tasks/spree_paypal_express.rake

27 lines
1.0 KiB
Ruby
Raw Normal View History

2010-11-28 14:31:31 +00:00
namespace :spree_paypal_express do
desc "Copies all migrations and assets (NOTE: This will be obsolete with Rails 3.1)"
task :install do
Rake::Task['spree_paypal_express:install:migrations'].invoke
Rake::Task['spree_paypal_express: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')
puts "INFO: Mirroring assets from #{source} to #{destination}"
2011-11-17 15:53:07 +00:00
Spree::Core::FileUtilz.mirror_files(source, destination)
2010-11-28 14:31:31 +00:00
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}"
2011-11-17 15:53:07 +00:00
Spree::Core::FileUtilz.mirror_files(source, destination)
2010-11-28 14:31:31 +00:00
end
end
2011-11-17 15:53:07 +00:00
end