@busy-web/cli
Advanced tools
Comparing version 0.7.2 to 0.7.3
{ | ||
"name": "@busy-web/cli", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"description": "Command line tools to enhance web dev tasks", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -34,2 +34,4 @@ /** | ||
run(branch, tag) { | ||
this.ui.info(`Deploy for branch: ${branch}, tag: ${tag}`); | ||
let cwd = process.cwd(); | ||
@@ -44,15 +46,16 @@ let pkgInfo = require(path.join(cwd + '/package.json')); | ||
if (!isEmpty(tag)) { | ||
if (/v[0-9]+\.[0-9]+\.[0-9]+$/.test(tag)) { | ||
this.ui.info('Preparing production deploy...', tag); | ||
//return getRevision.call(this).then(revision => { | ||
// return this.cmd(`ember deploy production`).then(() => { | ||
// return this.cmd(`ember deploy:activate --revision ${revision} production`).then(() => { | ||
// return this.resolve('Deploy finished!'); | ||
// }); | ||
// }); | ||
//}); | ||
} else { | ||
this.resolve('Not a production tag. Skipping deploy'); | ||
if (!/v?[0-9]+\.[0-9]+\.[0-9]+$/.test(tag)) { | ||
return this.resolve('Not a production tag. Skipping deploy'); | ||
} | ||
this.ui.info(`Preparing production deploy for tag: ${tag}`); | ||
//return getRevision.call(this).then(revision => { | ||
// return this.cmd(`ember deploy production`).then(() => { | ||
// return this.cmd(`ember deploy:activate --revision ${revision} production`).then(() => { | ||
// return this.resolve('Deploy finished!'); | ||
// }); | ||
// }); | ||
//}); | ||
} else if (!isEmpty(branch)) { | ||
this.ui.info(`Preparing deploy for branch: ${branch}`); | ||
let [ build, ] = buildVer.split('.'); | ||
@@ -59,0 +62,0 @@ if (branch === 'master') { |
54380
1383