public
Rubygem
Description: Piston is a utility that eases vendor branch management. This repository is a complete reimplementation of Piston to provide different backends, depending on the repositories and working copies you pistonize from.
Homepage: http://piston.rubyforge.org/
Clone URL: git://github.com/francois/piston.git
francois (author)
Sun Mar 16 19:43:20 -0700 2008
commit  0b96e22dc0b68781ea443ae39afab6c246dd1b47
tree    19e3468e9ae95e254b9bd6e36c0872c66ec8e3ec
parent  9b7391c8f907342387fff51aef4f020f1065ae85
piston / tasks / website.rake
100644 18 lines (15 sloc) 0.585 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
desc 'Generate website files'
task :website_generate => :ruby_env do
  (Dir['website/**/*.txt'] - Dir['website/version*.txt']).each do |txt|
    sh %{ #{RUBY_APP} script/txt2html #{txt} > #{txt.gsub(/txt$/,'html')} }
  end
end
 
desc 'Upload website files to rubyforge'
task :website_upload do
  host = "#{rubyforge_username}@rubyforge.org"
  remote_dir = "/var/www/gforge-projects/#{PATH}/"
  local_dir = 'website'
  sh %{rsync -aCv #{local_dir}/ #{host}:#{remote_dir}}
end
 
desc 'Generate and upload website files'
task :website => [:website_generate, :website_upload, :publish_docs]