chalkers / quirky

A small yet powerful Sinatra and git powered Content Management System (CMS) - Under active development - Todos listed in quirky.rb

This URL has Read+Write access

chalkers (author)
Thu Jan 15 16:38:31 -0800 2009
commit  94dc49401738d46029138677361a12b0e81906d8
tree    3a428b13f73a8e9f729987a585d22507edef7d27
parent  32ac6a0c522da5698320143dc98cef5a08a82433
quirky / Rakefile
100644 24 lines (22 sloc) 0.587 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
task :default => :init
 
desc "Initialise the application"
task :init do
  require 'boot'
  if(!File.exists?(QREPOSITORY_PATH+"/index.yaml"))
    Page.save(
      :name => "index",
      :title => "Congratulations!",
      :content => "h1. You've done it.\n\nYou've installed quirky!",
      :keywords => "amazing, super, awesome",
      :description => "Two words: awesome!"
    )
  else
    puts "Already initialised"
  end
end
 
desc "Loads test suite"
QREPOSITORY_PATH = FileUtils.pwd + "/tmp/system"
require 'boot'
task :test do
    Dir["tests/**/*.rb"].each { |test| load test }
end