1 desc 'Generate website files'
2 task :website_generate do
3 sh %{ ruby scripts/txt2html website/index.txt > website/index.html }
4 sh %{ ruby scripts/txt2js website/version.txt > website/version.js }
5 sh %{ ruby scripts/txt2js website/version-raw.txt > website/version-raw.js }
8 desc 'Upload website files to rubyforge'
9 task :website_upload do
10 config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
11 host = "#{config["username"]}@rubyforge.org"
12 remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/"
14 sh %{rsync -aCv #{local_dir}/ #{host}:#{remote_dir}}
17 desc 'Generate and upload website files'
18 task :website => [:website_generate, :website_upload, :publish_docs]