Sha256: efe4d7656915cef36abb4068efe7d66d5176741eeebd99b06cff06086057fc9a
Contents?: true
Size: 760 Bytes
Versions: 5
Compression:
Stored size: 760 Bytes
Contents
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 sh %{ #{RUBY_APP} script/txt2js website/version.txt > website/version.js } sh %{ #{RUBY_APP} script/txt2js website/version-raw.txt > website/version-raw.js } end desc 'Upload website files to rubyforge' task :website_upload do host = "#{RUBYFORGE_USERNAME}@rubyforge.org" remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/" 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]
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
newgem-0.13.0 | tasks/website.rake |
newgem-0.13.1 | tasks/website.rake |
newgem-0.13.2 | tasks/website.rake |
newgem-0.13.3 | tasks/website.rake |
newgem-0.13.4 | tasks/website.rake |