* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Deployer; desc('Creating symlink to release'); task('deploy:symlink', function () { if (get('use_atomic_symlink')) { run("mv -T {{deploy_path}}/release {{deploy_path}}/current"); } else { // Atomic symlink does not supported. // Will use simpleā‰¤ two steps switch. run("cd {{deploy_path}} && {{bin/symlink}} {{release_path}} current"); // Atomic override symlink. run("cd {{deploy_path}} && rm release"); // Remove release link. } });