Sha256: d114273895c9a150c539ec9781877e37376c9b89454a1251e5e8c20671701b97
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
require 'rails/generators' module SpreeAlipay module Generators class InstallGenerator < Rails::Generators::Base 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_alipay-1.2 | lib/tasks/install.rake~ |