Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: notsure
Fetching contributors…

Cannot retrieve contributors at this time

executable file 63 lines (51 sloc) 1.368 kb
require 'rake'
require 'data/init'
require 'sass'
namespace :db do
task :migrate do
`sequel -m data data/database.yml`
end
task :wipe do
`sequel -m data data/database.yml -M 0`
end
end
namespace :cache do
desc "Converts css"
task :css do
`sudo rm -rf public/css/main.css`
`sudo rm -rf public/css/main.max.css`
`sass views/main.sass public/css/main.max.css`
`java -jar lib/yuicompressor-2.4.2.jar public/css/main.max.css > public/css/main.css`
end
task :js do
`cat public/script/jquery.min.js > public/script/all.max.js`
`cat public/script/main.js >> public/script/all.max.js`
# `cat public/script/jquery.ui.min.js >> public/script/all.max.js`
`java -jar lib/yuicompressor-2.4.2.jar public/script/all.max.js > public/script/all.js`
end
end
namespace :scan do
desc "Scan posts directory and import posts using maruku"
task :posts do
PostParser.scan_posts
end
desc "Scan pages directory and import posts using maruku"
task :pages do
PostParser.scan_pages
end
desc "Scan everything"
task :all do
PostParser.scan_posts
PostParser.scan_pages
end
desc "Remove old posts"
task :trim do
PostParser.trim
end
desc "Remove all posts and rescan"
task :nuke do
PostParser.nuke
PostParser.scan_posts
PostParser.scan_pages
end
end
Jump to Line
Something went wrong with that request. Please try again.