Sha256: 9d47d67973b61f5e18b2ce78abcd82bc73de1fc4e568f3ee74e0fa5d690278b6

Contents?: true

Size: 914 Bytes

Versions: 36

Compression:

Stored size: 914 Bytes

Contents

#These are tasks used for the development of CMS as a standalone rails app, not to be included into a CMS project

desc "Reset the DB, run the migrations, load the fixtures, run the specs"
task :reset => ["db:reload_demo_data", "test:all"]

namespace :db do
  # This task needs to somehow be packaged as part of the CMS gem, so that users can use the demo.rb template to install the data.
  
  desc "Installs sample data for a demo site, including several templates and sample pages."
  task :load_demo_data => :environment do
    t0 = Time.now
    puts "== Demo Data: creating ====================================================="    
    InitialData.load_demo
    puts "== Demo Data: created (%0.4fs) ============================================\n" % (Time.now - t0)    
  end
  
  
  desc "Wipes database, and reinstalls the demo data."
  task :reload_demo_data => ["db:migrate:reset", "db:load_demo_data"]
end

Version data entries

36 entries across 36 versions & 11 rubygems

Version Path
SFEley-browsercms-3.0.2 lib/tasks/dev.rake
buzzware-browsercms-3.0.2 lib/tasks/dev.rake
coredumplings-browsercms-3.0.0 lib/tasks/dev.rake
nate-browsercms-3.0.210 lib/tasks/dev.rake
nate-browsercms-3.0.211 lib/tasks/dev.rake
we5-browsercms-3.0.1.1 lib/tasks/dev.rake
webficient-browsercms-3.0.1 lib/tasks/dev.rake
webficient-browsercms-3.0.2 lib/tasks/dev.rake
webficient-browsercms-3.0.3 lib/tasks/dev.rake
webficient-browsercms-3.0.4 lib/tasks/dev.rake
browsercms-3.1.5 lib/tasks/dev.rake
browsercms-3.1.4 lib/tasks/dev.rake
browsercms-3.1.3 lib/tasks/dev.rake
browsercms-3.3.0.beta lib/tasks/dev.rake
bf4-browsercms-3.1.0 lib/tasks/dev.rake
drujensen-browsercms-3.2.0 lib/tasks/dev.rake
browsercmsi-3.1.2 lib/tasks/dev.rake
browsercms-3.1.2 lib/tasks/dev.rake
browsercms-3.1.1 lib/tasks/dev.rake
browsercmsi-3.1.1 lib/tasks/dev.rake