Author: boisvert
Date: Wed Jan 13 19:11:55 2010
New Revision: 898892
URL: http://svn.apache.org/viewvc?rev=898892&view=rev
Log:
BUILDR-360: Reintroduce tag_name instance method for Git release task for
backward compatibility
Modified:
buildr/trunk/lib/buildr/core/build.rb
Modified: buildr/trunk/lib/buildr/core/build.rb
URL:
http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/core/build.rb?rev=898892&r1=898891&r2=898892&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/core/build.rb (original)
+++ buildr/trunk/lib/buildr/core/build.rb Wed Jan 13 19:11:55 2010
@@ -293,6 +293,16 @@
fail 'Looking for THIS_VERSION = "..." in your Buildfile, none found'
end
+ # Use this to specify a different tag name for tagging the release in
source control.
+ # You can set the tag name or a proc that will be called with the version
number,
+ # for example:
+ # Release.find.tag_name = lambda { |ver| "foo-#{ver}" }
+ # Deprecated: you should use Release.tag_name instead
+ def tag_name(tag_proc)
+ warn("Release.find.tag_name is deprecated. You should use
Release.tag_name instead")
+ Release.tag_name(tag_proc)
+ end
+
protected
# :call-seq: