NAME

WWW::SFDC::Metadata::DeployResult - Container for Salesforce Metadata API Deployment result

VERSION

version 0.36

DESCRIPTION

WWW::SFDC::Metadata->Deploy returns a DeployResult in order to provide rich ability for handling different categories of errors, including categorised test results and component failures.

It is overloaded such that when stringified it returns the deployment ID, because that's the most important element, and it enables chaining with DeployRecentValidation.

You probably will only consume this, rather than explicitly creating it.

ATTRIBUTES

id

The deployment ID. When stringified, this is the object's value.

success

A boolean representing whether the deployment's status is 'Succeeded'.

complete

A boolean representing whether the deployment is in any complete status, successful or otherwise.

result

The 'result' element of a SOAP::SOM returned from a Salesforce Deploy call. This is used for the generation of all other attributes.

testFailures

An arrayref of testResults, sorted by class name and method name.

testFailures

An arrayref of failed components, sorted by file name and component name.

METHODS

testFailuresSince($previous)

Here, $previous is another WWW::SFDC::Metadata::DeployResult. This attribute holds all failures that are new in this result compared to the previous one. This is useful for providing a running commentary on what's failed so far.

componentFailuresSince($previous)

Here, $previous is another WWW::SFDC::Metadata::DeployResult. This attribute holds all failures that are new in this result compared to the previous one. This is useful for providing a running commentary on what's failed so far.

BUGS

Please report any bugs or feature requests at https://github.com/sophos/WWW-SFDC/issues.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc WWW::SFDC::Metadata::DeployResult

You can also look for information at https://github.com/sophos/WWW-SFDC

AUTHOR

Alexander Brett <alexander.brett@sophos.com> http://alexander-brett.co.uk

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by Sophos Limited https://www.sophos.com/.

This is free software, licensed under:

The MIT (X11) License

The full text of the license can be found in the LICENSE file included with this distribution.