--
-$Id: ChangeLog 11 2005-03-28 21:00:30Z tilman $
+$Id: ChangeLog 12 2005-03-28 21:06:34Z tilman $
++
2005-03-28 Tilman Sauerbeck (tilman at code-monkey de)
* README: Added basic documentation
* Rakefile: Added an RDocTask
* Rakefile: Added a PackageTask
+ * Rakefile:: Added a publish task
2005-03-26 Tilman Sauerbeck (tilman at code-monkey de)
* lib/redact/app.rb: Use Tempfile's for the Embryo source- and
-# $Id: Rakefile 11 2005-03-28 21:00:30Z tilman $
+# $Id: Rakefile 12 2005-03-28 21:06:34Z tilman $
require "rake/clean"
require "rake/testtask"
require "rake/rdoctask"
require "rake/packagetask"
+require "rake/contrib/compositepublisher.rb"
+require "rake/contrib/sshpublisher"
PKG_NAME = "redact"
PKG_VERSION = `grep VERSION lib/redact/redact.rb`.
t.package_files.include("[A-Z]*", "bin/redact", "lib/redact/*.rb",
"test/*.rb")
end
+
+task :publish => [:rdoc, :package] do
+ p = Rake::CompositePublisher.new
+ p.add(Rake::SshFreshDirPublisher.new("code-monkey.de",
+ "public_html/docs/" +
+ PKG_NAME, "doc"))
+ p.add(Rake::SshFilePublisher.new("code-monkey.de",
+ ".", "pkg",
+ "#{PKG_NAME}-#{PKG_VERSION}.tar.gz"))
+ p.upload
+end