Sha256: 8a0dca34d98243a773c6f6c089f615bc39fc594aaf990dfe9c6592562c9d9764

Contents?: true

Size: 688 Bytes

Versions: 1

Compression:

Stored size: 688 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
apispree_api-0.0.0 lib/tasks/install.rake