Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 63 lines (51 sloc) 1.368 kb
7bcadd8 @seanhess initial commit
authored
1 require 'rake'
1bdb2aa @seanhess got tags working with sequel
authored
2 require 'data/init'
b24cb3f @seanhess final touches...
authored
3 require 'sass'
7bcadd8 @seanhess initial commit
authored
4
5 namespace :db do
6 task :migrate do
f84d5f2 @seanhess new views, new importing system, using metadata
authored
7 `sequel -m data data/database.yml`
7bcadd8 @seanhess initial commit
authored
8 end
9
f84d5f2 @seanhess new views, new importing system, using metadata
authored
10 task :wipe do
11 `sequel -m data data/database.yml -M 0`
7bcadd8 @seanhess initial commit
authored
12 end
f84d5f2 @seanhess new views, new importing system, using metadata
authored
13
7bcadd8 @seanhess initial commit
authored
14 end
15
16
b24cb3f @seanhess final touches...
authored
17 namespace :cache do
18 desc "Converts css"
19 task :css do
20 `sudo rm -rf public/css/main.css`
3c009d5 @seanhess minimized stuff. fixed some stuff
authored
21 `sudo rm -rf public/css/main.max.css`
22 `sass views/main.sass public/css/main.max.css`
23 `java -jar lib/yuicompressor-2.4.2.jar public/css/main.max.css > public/css/main.css`
24 end
25
26 task :js do
27 `cat public/script/jquery.min.js > public/script/all.max.js`
28 `cat public/script/main.js >> public/script/all.max.js`
29 # `cat public/script/jquery.ui.min.js >> public/script/all.max.js`
30 `java -jar lib/yuicompressor-2.4.2.jar public/script/all.max.js > public/script/all.js`
b24cb3f @seanhess final touches...
authored
31 end
32 end
33
7bcadd8 @seanhess initial commit
authored
34 namespace :scan do
35
36 desc "Scan posts directory and import posts using maruku"
37 task :posts do
f84d5f2 @seanhess new views, new importing system, using metadata
authored
38 PostParser.scan_posts
7bcadd8 @seanhess initial commit
authored
39 end
40
b24cb3f @seanhess final touches...
authored
41 desc "Scan pages directory and import posts using maruku"
7bcadd8 @seanhess initial commit
authored
42 task :pages do
f84d5f2 @seanhess new views, new importing system, using metadata
authored
43 PostParser.scan_pages
7bcadd8 @seanhess initial commit
authored
44 end
45
b24cb3f @seanhess final touches...
authored
46 desc "Scan everything"
7bcadd8 @seanhess initial commit
authored
47 task :all do
f84d5f2 @seanhess new views, new importing system, using metadata
authored
48 PostParser.scan_posts
49 PostParser.scan_pages
7bcadd8 @seanhess initial commit
authored
50 end
b98e14c @seanhess pages and posts.... links, full view, etc
authored
51
b24cb3f @seanhess final touches...
authored
52 desc "Remove old posts"
b98e14c @seanhess pages and posts.... links, full view, etc
authored
53 task :trim do
54 PostParser.trim
55 end
21d81c5 @seanhess looking good! Only need a feed
authored
56
b24cb3f @seanhess final touches...
authored
57 desc "Remove all posts and rescan"
21d81c5 @seanhess looking good! Only need a feed
authored
58 task :nuke do
59 PostParser.nuke
60 PostParser.scan_posts
61 PostParser.scan_pages
62 end
7bcadd8 @seanhess initial commit
authored
63 end
Something went wrong with that request. Please try again.