Sha256: 3ec10d7b862244360afe4b5fe4a4d2f75fa86f0bf956dcfea9ad374674247f22
Contents?: true
Size: 638 Bytes
Versions: 1
Compression:
Stored size: 638 Bytes
Contents
namespace :content_engine do desc "Generate content engine migration files" task :migrate do puts "Generating migration files" system "rsync -ruv #{File.expand_path('../../../db/migrate', __FILE__)} db" puts "=========================" puts " Please run db:migrate" puts "=========================" end desc "Execute pending migration and create default site" task :install => :environment do unless ENV.include?("site") raise 'usage: rake content_engine:install site="My site name"' end Rake::Task["db:migrate"].invoke Site.create(:name => ENV["site"]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
content_engine-0.1.0 | lib/tasks/content_engine.rake |