]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/composite_primary_keys-1.1.0/tasks/website.rake
Patch composite_primary_keys to work around issue when one component of
[rails.git] / vendor / gems / composite_primary_keys-1.1.0 / tasks / website.rake
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 }
6 end
7
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}/"
13   local_dir = 'website'
14   sh %{rsync -aCv #{local_dir}/ #{host}:#{remote_dir}}
15 end
16
17 desc 'Generate and upload website files'
18 task :website => [:website_generate, :website_upload, :publish_docs]