src/Acquia/Cloud/Api/CloudApiClient.php
public function deployCode($site, $sourceEnv, $targetEnv)
    {
        $variables = array(
            'site' => $site,
            'source' => $sourceEnv,
            'target' => $targetEnv,
        );
        $request = $this->post(array('{+base_path}/sites/{site}/code-deploy/{source}/{target}.json', $variables));
        return new Response\Task($request);
    }
public function deployCode($site, $sourceEnv, $targetEnv)
    {
        $variables = array(
            'site' => $site,
            'source' => $sourceEnv,
            'target' => $targetEnv,
        );
        $request = $this->post(array('{+base_path}/sites/{site}/code-deploy/{source}/{target}.json', $variables));
        return new Response\Task($request);
    }
public function deployCode ( $ site , $ sourceEnv , $ targetEnv ) { $ variables = array ( 'site' => $ site , 'source' => $ sourceEnv , 'target' => $ targetEnv , ) ; $ request = $ this -> post ( array ( '{+base_path}/sites/{site}/code-deploy/{source}/{target}.json' , $ variables ) ) ; return new Response \ Task ( $ request ) ; }
Deploy code from on environment to another.

@param string $site
@param string $sourceEnv
@param string $targetEnv

@return \Acquia\Cloud\Api\Response\Task

@throws \Guzzle\Http\Exception\ClientErrorResponseException

@see http://cloudapi.acquia.com/#POST__sites__site_code_deploy__source__target-instance_route
Deploy code from on environment to another .