Sha256: c7b6d4ee8e2f9a520dc245b85a2c3a95489eb7b86de02412e72c99333e7e0ddf

Contents?: true

Size: 916 Bytes

Versions: 23

Compression:

Stored size: 916 Bytes

Contents

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

23 entries across 23 versions & 5 rubygems

Version Path
My-Commerce_promo-1.1.0 lib/tasks/install.rake
My-Commerce_promo-1.0.0 lib/tasks/install.rake
MyCommerceapi-1.0.0 promo/lib/tasks/install.rake
MyCommerce-0.0.3 promo/lib/tasks/install.rake
rfcommerce_promo-0.0.3 lib/tasks/install.rake
spree_promo-0.60.6 lib/tasks/install.rake
spree_promo-0.60.5 lib/tasks/install.rake
spree_promo-0.40.4 lib/tasks/install.rake
spree_promo-0.50.4 lib/tasks/install.rake
spree_promo-0.60.4 lib/tasks/install.rake
spree_promo-0.50.3 lib/tasks/install.rake
spree_promo-0.60.3 lib/tasks/install.rake
spree_promo-0.60.2 lib/tasks/install.rake
spree_promo-0.60.1 lib/tasks/install.rake
spree_promo-0.60.0 lib/tasks/install.rake
spree_promo-0.60.0.RC1 lib/tasks/install.rake
spree_promo-0.50.2 lib/tasks/install.rake
spree_promo-0.50.1 lib/tasks/install.rake
spree_promo-0.50.0 lib/tasks/install.rake
spree_promo-0.40.3 lib/tasks/install.rake