[ditz-talk] How to use hooks
Alejandro Liu Ly
alejandro.liu at ymail.com
Fri Mar 25 18:47:19 EDT 2011
So I figured out how to use the hooks. Since I have never ever written a single line of code in Ruby you can assume that everything in this e-mail is wrong.
Attached is my attempt at integrating DITZ with BZR. Save the file in a directory $HOME/.ditz/hooks or $PROJECT/.ditz/hooks with a .rb extension.
Hopefully this would help others from spending time searching the web for examples on how to use ditz hooks.
Regards,
Alex
--- On Tue, 22/3/11, Alejandro Liu Ly <alejandro.liu at ymail.com> wrote:
From: Alejandro Liu Ly <alejandro.liu at ymail.com>
Subject: Re: [ditz-talk] How to use hooks
To: ditz-talk at rubyforge.org
Date: Tuesday, 22 March, 2011, 18:28
So back to my question on how to use hooks...
Essentially I want to use the hooks as defined by: ditz --list-hooks.
I simply want to run the appropriate SCM command for the after_update, after_delete and after_add hooks are triggered.
I can not find any examples on how to do this anywhere. (I am sorry, I don't know Ruby, I just want to be able to use ditz).
I looked into the plugins but that did not share much light on how would I do this.
Regards
Alejandro
-----Inline Attachment Follows-----
_______________________________________________
ditz-talk mailing list
ditz-talk at rubyforge.org
http://rubyforge.org/mailman/listinfo/ditz-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ditz-talk/attachments/20110325/30ebaf59/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr.rb
Type: application/octet-stream
Size: 730 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/ditz-talk/attachments/20110325/30ebaf59/attachment.obj>
More information about the ditz-talk
mailing list