Sha256: bd0d98abf2ebb6d91c55a543260fb12afbb8febf89892a63879f6559b2299b9b

Contents?: true

Size: 951 Bytes

Versions: 4

Compression:

Stored size: 951 Bytes

Contents

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

4 entries across 4 versions & 1 rubygems

Version Path
synergy_bootstrap_theme-0.0.4 lib/tasks/install.rake
synergy_bootstrap_theme-0.0.3 lib/tasks/install.rake
synergy_bootstrap_theme-0.0.2 lib/tasks/install.rake
synergy_bootstrap_theme-0.0.1 lib/tasks/install.rake