Sha256: 26537a56bf0d85ca8b676bf9ee817fbf4c8f38ab7ddf44772ca88801d474d9aa
Contents?: true
Size: 916 Bytes
Versions: 5
Compression:
Stored size: 916 Bytes
Contents
# $Id: website.rake 115 2008-01-27 03:36:45Z tim_pease $ namespace :website do desc 'Build the Webby website' task :build do begin olddir = pwd chdir 'examples/webby' sh 'rake rebuild BASE="http://webby.rubyforge.org"' cp_r 'output/.', olddir + '/doc' ensure chdir olddir end end desc 'Remove the Webby website' task :clobber do rm_r 'doc' rescue nil end desc 'Publish the website to RubyForge' task :release => %w(website:clobber doc:rdoc website:build) do config = YAML.load( File.read(File.expand_path('~/.rubyforge/user-config.yml')) ) host = "#{config['username']}@rubyforge.org" remote_dir = "/var/www/gforge-projects/#{PROJ.rubyforge_name}/" sh "rsync --delete -rulptzCF doc/ #{host}:#{remote_dir}" end end # namespace :website task :clobber => 'website:clobber' # EOF
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
webby-0.7.3 | tasks/website.rake |
webby-0.8.0 | tasks/website.rake |
webby-0.7.4 | tasks/website.rake |
webby-0.7.2 | tasks/website.rake |
webby-0.8.1 | tasks/website.rake |