Return deployment results (--wait)

If you want puppet-code deploy to return the results of the actual deployment event(s), add the --wait flag. Otherwise, the command returns only deployment queuing information.

For example:

puppet-code deploy --all --wait

With the --wait flag, Code Manager deploys code to the specified environment(s), and only returns results after file sync has deployed code to the live code directory and all compilers.

The resulting message includes the deployment signature, which is the commit SHA from the control repo used to deploy the environment. The output also includes two other SHAs that indicate that file sync is aware that the environment has been newly deployed to the code staging directory.

In deployments that are geographically dispersed or have a large quantity of environments, complete code deployment might take several minutes.