Sha256: 7a984d3209003c65f4ccc407d5c30365f85466ddcf9f1418ec098c9c0ca7866f

Contents?: true

Size: 1.14 KB

Versions: 5

Compression:

Stored size: 1.14 KB

Contents

namespace :synergy do
  desc "Copies all migrations and assets (NOTE: This will be obsolete with Rails 3.1)"
  task :install do
    Rake::Task['synergy:install:migrations'].invoke
    Rake::Task['synergy:install:assets'].invoke
    Rake::Task['spree_editor:install'].invoke
    Rake::Task['spree_yandex_market:install'].invoke
    Rake::Task['spree_address_book:install'].invoke
    exec "rails g spree_static_content:install"
  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__), '..', '..', '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
synergy-0.60.0 lib/tasks/install.rake
synergy-0.60.0.RC1 lib/tasks/install.rake
synergy-0.50.0 lib/tasks/install.rake
synergy-0.50.0.rc2 lib/tasks/install.rake
synergy-0.50.0.rc1 lib/tasks/install.rake