src/Acquia/Cloud/Api/CloudApiClient.php
public function pushCode($site, $env, $vcsPath)
    {
        $variables = array(
            'site' => $site,
            'env' => $env,
            'path' => $vcsPath,
        );
        $request = $this->post(array('{+base_path}/sites/{site}/envs/{env}/code-deploy.json?path={path}', $variables));
        return new Response\Task($request);
    }
public function pushCode($site, $env, $vcsPath)
    {
        $variables = array(
            'site' => $site,
            'env' => $env,
            'path' => $vcsPath,
        );
        $request = $this->post(array('{+base_path}/sites/{site}/envs/{env}/code-deploy.json?path={path}', $variables));
        return new Response\Task($request);
    }
public function pushCode ( $ site , $ env , $ vcsPath ) { $ variables = array ( 'site' => $ site , 'env' => $ env , 'path' => $ vcsPath , ) ; $ request = $ this -> post ( array ( '{+base_path}/sites/{site}/envs/{env}/code-deploy.json?path={path}' , $ variables ) ) ; return new Response \ Task ( $ request ) ; }
Deploy a tag or branch to an environment.

@param string $site
@param string $env
@param string $vcsPath

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

@throws \Guzzle\Http\Exception\ClientErrorResponseException

@see http://cloudapi.acquia.com/#POST__sites__site_envs__env_code_deploy-instance_route
Deploy a tag or branch to an environment .