Sha256: 1177104cad3c9b8a4e8f831cc1655c8da5ff79c69149aed655a1daa710e7ca94

Contents?: true

Size: 727 Bytes

Versions: 29

Compression:

Stored size: 727 Bytes

Contents

desc 'Generate website files'
task :website_generate do
  sh %{ ruby scripts/txt2html website/index.txt > website/index.html }
  sh %{ ruby scripts/txt2js website/version.txt > website/version.js }
  sh %{ ruby scripts/txt2js website/version-raw.txt > website/version-raw.js }
end

desc 'Upload website files to rubyforge'
task :website_upload do
  config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
  host = "#{config["username"]}@rubyforge.org"
  remote_dir = "/var/www/gforge-projects/compositekeys/"
  local_dir = 'website'
  sh %{scp -r #{local_dir}/* #{host}:#{remote_dir}}
end

desc 'Generate and upload website files'
task :website => [:website_generate, :website_upload]

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
composite_primary_keys-11.2.0 tasks/website.rake
composite_primary_keys-11.1.0 tasks/website.rake
composite_primary_keys-11.0.3 tasks/website.rake
composite_primary_keys-11.0.2 tasks/website.rake
composite_primary_keys-10.0.5 tasks/website.rake
composite_primary_keys-9.0.10 tasks/website.rake
composite_primary_keys-11.0.1 tasks/website.rake
composite_primary_keys-11.0.0 tasks/website.rake
composite_primary_keys-10.0.4 tasks/website.rake