CASCM-Wrapper

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


    Log::Log4perl->init('log4perl.conf');
    Log::Any::Adapter->set('Log4perl');

    # Get logger
    my $log = Log::Log4perl->get_logger();

    # Set parse_logs to true. This will croak if Log:Any is not found.
    my $cascm = CASCM::Wrapper->new( { parse_logs => 1 } );

    # You can also set the logging category
    #    This is currently available with Log4perl only
    $cascm->parse_logs('mylogger');

    # Set Context
    my $context = { ... };
    $cascm->set_context($context);

    # Calling the method automatically will parse the log output into the Log4perl object
    # The output is also logged in the 'CASCM::Wrapper' category.

    $cascm->hco(@files) or die $cascm->errstr;



ERROR HANDLING


All methods return true on success and undef on failure. The error that
most likely caused the _last_ failure can be obtained by calling the
errstr method. The exit value of the last _h_ command can be obtained by
calling the exitval method.



DEPENDENCIES


CA-SCM r12 (or higher) client. Harvest 7.1 might work, but has not been
tested.

The CA-SCM methods depends on the corresponding commands to be available
in the _PATH_

At least Perl 5.6.1 is required to run.

Optionally, Config::Tiny is required to read context files

Optionally, Log::Any and Log::Any::Adapter is required to parse CA-SCM
log files



SEE ALSO


CA Software Change Manager



BUGS AND LIMITATIONS


Please report any bugs or feature requests at
https://github.com/mithun/perl-cascm-wrapper/issues



AUTHOR


Mithun Ayachit mithun@cpan.org



LICENSE AND COPYRIGHT


Copyright (c) 2014, Mithun Ayachit. All rights reserved.

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



( run in 1.518 second using v1.01-cache-2.11-cpan-39bf76dae61 )