public
Description: A model/view/controller generator for Rails that utilizes helpers as presenters.
Homepage: http://stonean.com/wiki/stage
Clone URL: git://github.com/stonean/stage.git
stonean (author)
Tue Jun 24 06:37:28 -0700 2008
commit  1360ed42ec488bad7393edce7a3e8efad7b3ddb7
tree    adfe3340948534de61d38f39f5de9b8d82e47367
parent  4f8489530d985e4ed76b7a954695e70f10701c8c
stage / 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]