Sha256: 174c1e884638fffa8e445b037dcccfcf3e9c0ca1bdde3ad00d979f3cf6940c6f

Contents?: true

Size: 1016 Bytes

Versions: 1

Compression:

Stored size: 1016 Bytes

Contents

namespace :pp_website_standard do
  desc "Copies all migrations and assets (NOTE: This will be obsolete with Rails 3.1)"
  task :install do
    Rake::Task['pp_website_standard:install:migrations'].invoke
    Rake::Task['pp_website_standard: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__), '..', '..', 'app/assets')
      destination = File.join(Rails.root, 'app/assets')
      puts "INFO: Mirroring assets from #{source} to #{destination}"
      Spree::FileUtilz.mirror_files(source, destination)
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_paypal_website_standard-0.8.4 lib/tasks/install.rake