Sha256: 86745d1e7e7918237d9490d2f99fc0793b37cf3371f4eb413c894259d56d1714
Contents?: true
Size: 483 Bytes
Versions: 23
Compression:
Stored size: 483 Bytes
Contents
desc "Rewrite index.html using index.erb and publisher_homepage.html" task :index do require 'erb' @title = "Constructor - atomicobject.rb" @plugin_install = "$ script/plugin install svn://rubyforge.org/var/svn/atomicobjectrb/tags/constructor" @header_html = File.read("page_header.html") html = ERB.new(File.read("index.erb")).result(binding) fname = "index.html" File.open(fname,"w") do |f| f.print html end puts "Wrote #{fname}" end task :default => :index
Version data entries
23 entries across 23 versions & 2 rubygems