Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

net::trac::connection(3pm) [debian man page]

Net::Trac::Connection(3pm)				User Contributed Perl Documentation				Net::Trac::Connection(3pm)

NAME
Net::Trac::Connection - Connection to a remote Trac server DESCRIPTION
This class represents a connection to a remote Trac instance. It is required by all other classes which need to talk to Trac. SYNOPSIS
use Net::Trac::Connection; my $trac = Net::Trac::Connection->new( url => 'http://trac.example.com', user => 'snoopy', password => 'doghouse' ); ACCESSORS
url The url of the Trac instance used by this connection. Read-only after initialization. user password ACCESSORS
/ MUTATORS logged_in [BOOLEAN] Gets/sets a boolean indicating whether or not the connection is logged in yet. mech [MECH] Gets/sets the Net::Trac::Mechanize (or subclassed) object for this connection to use. Unless you want to replace it with one of your own, the default will suffice. METHODS
new PARAMHASH Creates a new Net::Trac::Connection given a paramhash with values for the keys "url", "user", and "password". ensure_logged_in Ensures this connection is logged in. Returns true on success, and undef on failure. Sets the "logged_in" flag. PRIVATE METHODS
_fetch URL Fetches the provided relative URL from the Trac server. Returns undef on an error (after "warn"ing) and the content ("$self-"mech->content>) on success. _warn_on_error URL Checks the last request for an error condition and warns about them if found. Returns with a TRUE value if errors occurred and a FALSE value otherwise for nicer conditionals. _tsv_to_struct PARAMHASH Takes a paramhash of the keys "data" Given TSV data this method will return a reference to an array. LICENSE
Copyright 2008-2009 Best Practical Solutions. This package is licensed under the same terms as Perl 5.8.8. perl v5.12.3 2009-06-10 Net::Trac::Connection(3pm)

Check Out this Related Man Page

SVN::Notify::Filter::Trac(3pm)				User Contributed Perl Documentation			    SVN::Notify::Filter::Trac(3pm)

Name
       SVN::Notify::Filter::Trac - Filter SVN::Notify output in Trac format

Synopsis
       Use svnnotify in post-commit:

	 svnnotify --p "$1" --r "$2" --to you@example.com --handler HTML 
	 --filter Trac --trac-url http://trac.example.com

       Use the class in a custom script:

	 use SVN::Notify;

	 my $notifier = SVN::Notify->new(
	     repos_path => $path,
	     revision	=> $rev,
	     to 	=> 'you@example.com',
	     handler	=> 'HTML::ColorDiff',
	     filters	=> [ 'Trac' ],
	     trac_url	=> 'http://trac.example.com/',
	 );
	 $notifier->prepare;
	 $notifier->execute;

Description
       This module filters SVN::Notify log message output from Trac markup into HTML.  Essentially, this means that if you write your commit log
       messages using Trac wiki markup and like to use SVN::Notify::HTML or SVN::Notify::HTML::ColorDiff to format your commit notifications, you
       can use this filter to convert the Trac formatting in the log message to HTML.

       If you specify an extra argument, "trac_url" (or the "--trac-url" parameter to "svnnotify"), it will be used to generate Trac links for
       revision numbers and the like in your log messages.

See Also
       SVN::Notify
       svnnotify

Author
       David E. Wheeler <david@kineticode.com>

Copyright and License
       Copyright (c) 2008 Kineticode, Inc. Some Rights Reserved.

       This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

perl v5.10.1							    2011-03-15					    SVN::Notify::Filter::Trac(3pm)
Man Page