Sha256: cc22e096296e29d4decfa8322ca9038a0c34196e90a609a9e6a37eb5f5aa1641

Contents?: true

Size: 966 Bytes

Versions: 2

Compression:

Stored size: 966 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
spree_deprecated_user_agents-0.2.0 lib/tasks/install.rake
spree_deprecated_user_agents-0.1.0 lib/tasks/install.rake