You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by vb...@apache.org on 2009/03/04 06:59:22 UTC
svn commit: r749916 - /buildr/trunk/doc/scripts/gitflow.rb
Author: vborja
Date: Wed Mar 4 05:59:21 2009
New Revision: 749916
URL: http://svn.apache.org/viewvc?rev=749916&view=rev
Log:
Added comments to GitFlow
Modified:
buildr/trunk/doc/scripts/gitflow.rb
Modified: buildr/trunk/doc/scripts/gitflow.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/doc/scripts/gitflow.rb?rev=749916&r1=749915&r2=749916&view=diff
==============================================================================
--- buildr/trunk/doc/scripts/gitflow.rb (original)
+++ buildr/trunk/doc/scripts/gitflow.rb Wed Mar 4 05:59:21 2009
@@ -28,6 +28,9 @@
HELP = <<-HELP
+GitFlow is a tool to create custom git commands implemented in ruby.
+It is generic enougth to be used on any git based project besides Apache Buildr.
+
OVERVIEW:
gitflow is intended to help developers with their daily git workflow,
@@ -198,10 +201,24 @@
module Mixin
include FileUtils
+ # Override this method in your command class if it
+ # needs to parse command line options.
+ #
+ # This method takes an openstruct object as argument
+ # allowing you to store default values on it, and
+ # set option values.
+ #
+ # The return value must be an array of arguments
+ # given to optparse.on
def options(opt)
[]
end
+ # Override this method in your command class to implement
+ # the command.
+ # First argument is the openstruct object after
+ # it has been populated by the option parser.
+ # Second argument is the array of non-option arguments.
def execute(opt, argv)
fail "#{self.class.command} not implemented"
end