Sha256: 268fb1847db1ad1d5da86cebca29833edbe89eca2c3173b02155a9d5bc8db00c
Contents?: true
Size: 866 Bytes
Versions: 2
Compression:
Stored size: 866 Bytes
Contents
# $Id$ 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
webby-0.8.3 | tasks/website.rake |
webby-0.8.4 | tasks/website.rake |