Sha256: b063f53d9348e281f47972f435d8b9b1a96762d959ed2edb5e3ff4d2ff376eb1

Contents?: true

Size: 748 Bytes

Versions: 3

Compression:

Stored size: 748 Bytes

Contents

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

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_api-0.30.2 lib/tasks/install.rake
spree_api-0.30.1 lib/tasks/install.rake
spree_api-0.30.0 lib/tasks/install.rake