Sha256: 7a3f1b842fd0fb2bfadbef44800716c4ae8467102bb54ab2c1ef92dd5d358eb6

Contents?: true

Size: 989 Bytes

Versions: 3

Compression:

Stored size: 989 Bytes

Contents

namespace :spree_reviews do
  desc "Copies all migrations and assets (NOTE: This will be obsolete with Rails 3.1)"
  task :install do
    Rake::Task['spree_reviews:install:migrations'].invoke
    Rake::Task['spree_reviews: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}"
      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_reviews-0.50.1 lib/tasks/reviews_extension_tasks.rake
spree_reviews-0.50.0 lib/tasks/reviews_extension_tasks.rake
spree_reviews-0.30.0 lib/tasks/reviews_extension_tasks.rake