GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: A lightweight and flexible website management system.
Homepage: http://webby.rubyforge.org/
Clone URL: git://github.com/TwP/webby.git
Tim Pease (author)
Mon Feb 04 14:28:22 -0800 2008
commit  eeeb6cf68d9387d1050e60b9a6b190ada459585d
tree    1b6f254c9174ccaa4a4dd1cc9f349719d0c2a2b6
parent  44ab022fa073c540ef54934b87dfc072fc85338e
webby / data / tasks / setup.rb
100644 35 lines (26 sloc) 0.716 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
25
26
27
28
29
30
31
32
33
34
35
# $Id$
 
begin
  require 'webby'
rescue LoadError
  require 'rubygems'
  require 'webby'
end
 
SITE = Webby.site
 
# Webby defaults
SITE.content_dir = 'content'
SITE.output_dir = 'output'
SITE.layout_dir = 'layouts'
SITE.template_dir = 'templates'
SITE.exclude = %w[tmp$ bak$ ~$ CVS \.svn]
  
SITE.page_defaults = {
  'layout' => 'default'
}
 
# Items used to deploy the webiste
SITE.host = 'user@hostname.tld'
SITE.remote_dir = '/not/a/valid/dir'
SITE.rsync_args = %w(-av --delete)
 
# Options passed to the 'tidy' program when the tidy filter is used
SITE.tidy_options = '-indent -wrap 80'
 
# Load the other rake files in the tasks folder
Dir.glob('tasks/*.rake').sort.each {|fn| import fn}
 
# EOF