ClearCase-Attache
view release on metacpan or search on metacpan
true if the last command had warnings
=item warnings()
returns the warning diagnostics of the last issued command, as an
array of lines (trailing newlines and CR removed)
=item [any_attcmd_command]($argstring)
executes any given attache command, with the given args, for instance:
my $a=Attache->new("alfo_dev7");
$a->co(' -c "None of your business" /tt_vob/foo/bar/baz.cpp');
Arguments are processed by the shell, so caution with quoting, special
characters etc. should be exercised.
DO NOT include any workspace indication - it is automatically inserted.
Please consult the attache documentation to find out which commands are
supported.
=item setlog($path,[$appendflag])
Calling setlog directs attache to direct the comand output ti the
given file. If the (optional) $appendflag is true, the file is opened
in append mode and any previous content is preserved, rather than
truncated (the default). Calling
$a->setlog(undef)
Disables logging.
=back
=head2 EXPORT
None
=head2 INSTALLATION
Just drop in any directory of your INCLUDE path, or read the FindBin
docs and do something along the lines of:
use FindBin qw($Bin);
use lib ($Bin,"$Bin/../perl/lib", "$Bin/../lib/perl","$Bin/../lib");
#
use Attache;
=head2 SUPPORTED VERSIONS AND PLATFORMS
Tested with perl 5.6 (ActiveState build 623) on Windows NT. For Unix,
check the Clearcase wrapper on the nearest CPAN site
(http://search.cpan.org/search?mode=module&query=Clearcase).
Lesser perl versions may work (I'm almost positive about 5.5).
Windowze (non-NT) may also work, but I doubt it, as command.com is even more
broken than cmd.exe .
=head2 BUGS AND LIMITATIONS
No effort is made to ensure workspace validity.
Setlog should accept filehandle objects, and it should be possible to log
directly to STDOUT or STDERR.
Due to the cretin way in which cmd.exe handles command line quoting, some
combinations of (legitimate) arguments may break Attache - when this happens,
please direct your grievances to:
Microsoft Corp., Redmond, WA, U.S.A.
Every command starts a new attcmd.exe. If anybody knows a way to use attcmd
over a pipe (or a COM interface, or something else) pls. let me know.
=head1 AUTHOR
Alessandro Forghieri, alf@orion.it
=head1 SEE ALSO
The attache documentation, perl(1).
=head1 LICENSE
This code is released under the No-Copyright provisions of the
GNU Public License
=cut
( run in 1.372 second using v1.01-cache-2.11-cpan-5735350b133 )