This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php5.5-cli | |
<?php | |
/** | |
This script checks out a commit from a git-repository into a directory revision/$hash within the context | |
directory. Then creates the symbolic links defined in $links within that directory and swiches the symbolic | |
link $CURRENT_DEPLOYMENT_POINTER_LINK to that new directory. | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var TransactionQueue = function() { | |
var items = [], | |
currentTransactionPromise = null, | |
queuedDuringTransaction = [], | |
_self = this; | |
this.pushItem = function(item) { | |
if (currentTransactionPromise != null) | |
{ | |
console.log("Adding item WITHIN transaction: %o", item); |