boom-deploy
Advanced tools
Comparing version 0.0.28 to 0.0.29
@@ -55,4 +55,2 @@ | ||
new Task('sudotest', function(data){ | ||
//sudoSetPassword(); | ||
sudo('service nginx reload'); | ||
@@ -62,3 +60,2 @@ sudo('service php5-fpm reload'); | ||
sudo('service memcached restart'); | ||
//exit('ololo'); | ||
@@ -68,4 +65,8 @@ }) | ||
new Task('sudotest2', function(data){ | ||
//sudoSetPassword(); | ||
ssh('sudo service memcached restart'); | ||
}) | ||
new Task('memcached:flush', function(data){ | ||
console.log(get('memcached.servers')); | ||
ssh('(echo flush_all; echo quit) | nc {{memcached.servers[0].host}} {{memcached.servers[0].port}}'); | ||
}) |
@@ -86,4 +86,3 @@ new Task('deploy:setup', function(){ | ||
new Helper(function deploySymlink(){ | ||
ssh('rm -f {{deployTo}}/current', | ||
'mkdir -p {{sharedPath}}/log'); | ||
//ssh('rm -f {{deployTo}}/current'); | ||
symlink('{{releasePath}}', '{{currentPath}}'); | ||
@@ -90,0 +89,0 @@ symlink('{{sharedPath}}/log', '{{currentPath}}/log'); |
@@ -42,6 +42,6 @@ var _ = require('lodash'); | ||
if (!key) return this.data; | ||
return this.data[key]; | ||
return replacer.getProp(key, this.data); | ||
}, | ||
set: function(key, value){ | ||
this.data[key] = value; | ||
replacer.setProp(key, value, this.data) | ||
}, | ||
@@ -48,0 +48,0 @@ preprocess: function(obj, base){ |
@@ -7,6 +7,17 @@ var _ = require('lodash'); | ||
exports.replace = function(str, base){ | ||
str = str.replace(regExpReplacer, function(match, props){ | ||
return vm.runInNewContext('(function(){ return ' + props + '})()', base); | ||
str = str.replace(regExpReplacer, function(match, key){ | ||
return exports.getProp(key, base); | ||
}); | ||
return str; | ||
} | ||
exports.getProp = function(key, base){ | ||
return vm.runInNewContext('(function(){ try { return ' + key + ' } catch (err) { return undefined } })()', base); | ||
} | ||
exports.setProp = function(key, value, base){ | ||
return vm.runInNewContext('base.' + key + ' = value' , { | ||
value : value, | ||
base : base | ||
}); | ||
} |
{ | ||
"name": "boom-deploy", | ||
"main": "boom.js", | ||
"version": "0.0.28", | ||
"version": "0.0.29", | ||
"description": "deploy your app", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33848
1057