Sha256: 85ab1e9618c6193b0d17f0b221b9458d36c59ae438569609131a208aa0c0476c

Contents?: true

Size: 940 Bytes

Versions: 5

Compression:

Stored size: 940 Bytes

Contents

namespace :spree_editor do
  desc "Copies all migrations and assets (NOTE: This will be obsolete with Rails 3.1)"
  task :install do
    # No migrations
    # Rake::Task['spree_editor:install:migrations'].invoke
    Rake::Task['spree_editor: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

5 entries across 5 versions & 1 rubygems

Version Path
spree_editor-0.50.1 lib/tasks/install.rake
spree_editor-0.50.0 lib/tasks/install.rake
spree_editor-0.40.0 lib/tasks/install.rake
spree_editor-0.30.1 lib/tasks/install.rake
spree_editor-0.30.0 lib/tasks/install.rake