Sha256: 4fc191417112e488681dd19907bda4e4f226721797d60a26bb66b3a0bde2d29b

Contents?: true

Size: 635 Bytes

Versions: 11

Compression:

Stored size: 635 Bytes

Contents

namespace :website do
  desc 'Generate website files'
  task :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 :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 :build => [:website_generate, :website_upload, :publish_docs]
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rubyrep-1.2.0 tasks/website.rake
rubyrep-1.1.2 tasks/website.rake
rubyrep-1.1.1 tasks/website.rake
rubyrep-1.1.0 tasks/website.rake
rubyrep-1.0.9 tasks/website.rake
rubyrep-1.0.8 tasks/website.rake
rubyrep-1.0.3 tasks/website.rake
rubyrep-1.0.4 tasks/website.rake
rubyrep-1.0.5 tasks/website.rake
rubyrep-1.0.6 tasks/website.rake
rubyrep-1.0.7 tasks/website.rake