Skip to content

Commit

Permalink
Fixing references
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Rodrigues committed Oct 23, 2012
1 parent 2981980 commit 60d29d3
Show file tree
Hide file tree
Showing 7 changed files with 181 additions and 158 deletions.
22 changes: 12 additions & 10 deletions lib/cli/commands/deployment.js
Expand Up @@ -169,7 +169,7 @@ exports.init = function(cli) {



scm.command("github [name]").whiteListPowershell().usage("[options] [name]").description("Links a website to a github account for deployment").option("-s, --subscription <id>", "use the subscription id").option("-u, --username <user>", "The github username").option("-up, --pass <pass>", "The github password").option("-r, --repository <repository>", "The github repository").execute(function __4(name, options, _) { var context;
scm.command("github [name]").whiteListPowershell().usage("[options] [name]").description("Links a website to a github account for deployment").option("-s, --subscription <id>", "use the subscription id").option("-u, --username <user>", "The github username").option("-up, --pass <pass>", "The github password").option("-r, --repository <repository>", "The github repository full name (i.e. user/repository)").execute(function __4(name, options, _) { var context;



Expand Down Expand Up @@ -206,14 +206,16 @@ exports.init = function(cli) {



function initializeRemoteRepo(_) { var __frame = { name: "initializeRemoteRepo", line: 209 }; return __func(_, this, arguments, initializeRemoteRepo, 0, __frame, function __$initializeRemoteRepo() {


function initializeRemoteRepo(_) { var __frame = { name: "initializeRemoteRepo", line: 211 }; return __func(_, this, arguments, initializeRemoteRepo, 0, __frame, function __$initializeRemoteRepo() {
log.silly("InitializeRemoteRepo");
return site.doRepositoryPost(context, __cb(_, __frame, 2, 8, function __$initializeRemoteRepo() {
return site.ensureRepositoryUri(context, __cb(_, __frame, 3, 8, _, true)); }, true)); }); }; var __frame = { name: "__4", line: 180 }; return __func(_, this, arguments, __4, 2, __frame, function __$__4() { context = { subscription: cli.category("account").lookupSubscriptionId(options.subscription), site: { name: name }, username: options.username, password: options.pass, remoteUri: options.repository, flags: { } }; if (!context.remoteUri) { context.flags = { forceRepositorySelection: true }; } ; return site.ensureRepositoryUri(context, __cb(_, __frame, 19, 6, function __$__4() { return (function __$__4(__then) { if (!context.repositoryUri) { return initializeRemoteRepo(__cb(_, __frame, 22, 8, __then, true)); } else { __then(); } ; })(function __$__4() { context.lvcClient = linkedRevisionControl.createClient(cli, "github"); return context.lvcClient.init(context, __cb(_, __frame, 26, 6, function __$__4() { return context.lvcClient.deploy(context, __cb(_, __frame, 27, 6, _, true)); }, true)); }); }, true)); }); });
return site.ensureRepositoryUri(context, __cb(_, __frame, 3, 8, _, true)); }, true)); }); }; var __frame = { name: "__4", line: 180 }; return __func(_, this, arguments, __4, 2, __frame, function __$__4() { context = { subscription: cli.category("account").lookupSubscriptionId(options.subscription), site: { name: name }, github: { username: options.username, password: options.pass, repositoryFullName: options.repository }, flags: { } }; if (!context.github.repositoryFullName) { context.flags = { forceRepositorySelection: true }; } ; return site.ensureRepositoryUri(context, __cb(_, __frame, 21, 6, function __$__4() { return (function __$__4(__then) { if (!context.repositoryUri) { return initializeRemoteRepo(__cb(_, __frame, 24, 8, __then, true)); } else { __then(); } ; })(function __$__4() { context.lvcClient = linkedRevisionControl.createClient(cli, "github"); return context.lvcClient.init(context, __cb(_, __frame, 28, 6, function __$__4() { return context.lvcClient.deploy(context, __cb(_, __frame, 29, 6, _, true)); }, true)); }); }, true)); }); });



scm.doDeploymentsGet = function scm_doDeploymentsGet__5(context, _) { var maxItems, channel, progress, deployments; var __frame = { name: "scm_doDeploymentsGet__5", line: 216 }; return __func(_, this, arguments, scm_doDeploymentsGet__5, 1, __frame, function __$scm_doDeploymentsGet__5() {
scm.doDeploymentsGet = function scm_doDeploymentsGet__5(context, _) { var maxItems, channel, progress, deployments; var __frame = { name: "scm_doDeploymentsGet__5", line: 218 }; return __func(_, this, arguments, scm_doDeploymentsGet__5, 1, __frame, function __$scm_doDeploymentsGet__5() {
maxItems = parseInt(context.maxItems, 10);
if ((!maxItems || (maxItems <= 0))) {
maxItems = 20; } ;
Expand All @@ -234,7 +236,7 @@ exports.init = function(cli) {



scm.doDeploymentGet = function scm_doDeploymentGet__6(context, _) { var channel, progress; var __frame = { name: "scm_doDeploymentGet__6", line: 237 }; return __func(_, this, arguments, scm_doDeploymentGet__6, 1, __frame, function __$scm_doDeploymentGet__6() {
scm.doDeploymentGet = function scm_doDeploymentGet__6(context, _) { var channel, progress; var __frame = { name: "scm_doDeploymentGet__6", line: 239 }; return __func(_, this, arguments, scm_doDeploymentGet__6, 1, __frame, function __$scm_doDeploymentGet__6() {


channel = getScmChannel(context).path("deployments").path(context.id);
Expand All @@ -246,7 +248,7 @@ exports.init = function(cli) {



scm.doDeploymentPut = function scm_doDeploymentPut__7(context, _) { var channel, progress; var __frame = { name: "scm_doDeploymentPut__7", line: 249 }; return __func(_, this, arguments, scm_doDeploymentPut__7, 1, __frame, function __$scm_doDeploymentPut__7() {
scm.doDeploymentPut = function scm_doDeploymentPut__7(context, _) { var channel, progress; var __frame = { name: "scm_doDeploymentPut__7", line: 251 }; return __func(_, this, arguments, scm_doDeploymentPut__7, 1, __frame, function __$scm_doDeploymentPut__7() {


channel = getScmChannel(context).path("deployments").path(context.id);
Expand All @@ -258,7 +260,7 @@ exports.init = function(cli) {



scm.doLogGet = function scm_doLogGet__8(context, _) { var channel, progress, logs; var __frame = { name: "scm_doLogGet__8", line: 261 }; return __func(_, this, arguments, scm_doLogGet__8, 1, __frame, function __$scm_doLogGet__8() {
scm.doLogGet = function scm_doLogGet__8(context, _) { var channel, progress, logs; var __frame = { name: "scm_doLogGet__8", line: 263 }; return __func(_, this, arguments, scm_doLogGet__8, 1, __frame, function __$scm_doLogGet__8() {



Expand All @@ -272,7 +274,7 @@ exports.init = function(cli) {



function listDeployments(context, _) { var deployments, authorLength, messageLength; var __frame = { name: "listDeployments", line: 275 }; return __func(_, this, arguments, listDeployments, 1, __frame, function __$listDeployments() {
function listDeployments(context, _) { var deployments, authorLength, messageLength; var __frame = { name: "listDeployments", line: 277 }; return __func(_, this, arguments, listDeployments, 1, __frame, function __$listDeployments() {
return scm.doDeploymentsGet(context, __cb(_, __frame, 1, 22, function ___(__0, __1) { deployments = __1;
authorLength = 0; messageLength = 0;
if ((deployments && deployments.length)) {
Expand All @@ -290,13 +292,13 @@ exports.init = function(cli) {



function getLogDetails(context, _) { var results, logs, progress, i; var __frame = { name: "getLogDetails", line: 293 }; return __func(_, this, arguments, getLogDetails, 1, __frame, function __$getLogDetails() {
function getLogDetails(context, _) { var results, logs, progress, i; var __frame = { name: "getLogDetails", line: 295 }; return __func(_, this, arguments, getLogDetails, 1, __frame, function __$getLogDetails() {

return scm.doLogGet(context, __cb(_, __frame, 2, 15, function ___(__0, __2) { logs = __2; return (function __$getLogDetails(__then) {
if ((logs && logs.length)) {
progress = cli.progress("Retrieving log details"); return (function ___(__then) { (function ___(_) { __tryCatch(_, function __$getLogDetails() {

return async.map(logs, function __1(log, _) { var details; var __frame = { name: "__1", line: 299 }; return __func(_, this, arguments, __1, 1, __frame, function __$__1() { return (function __$__1(__then) {
return async.map(logs, function __1(log, _) { var details; var __frame = { name: "__1", line: 301 }; return __func(_, this, arguments, __1, 1, __frame, function __$__1() { return (function __$__1(__then) {
if (log.hasDetails) {


Expand Down
2 changes: 1 addition & 1 deletion lib/cli/commands/deployment_.js
Expand Up @@ -191,7 +191,7 @@ exports.init = function (cli) {
flags: { }
};

if (!context.) {
if (!context.github.repositoryFullName) {
// If no explicit github repository URI is passed
// this command always prompts the user for a repository
context.flags = { forceRepositorySelection: true };
Expand Down

0 comments on commit 60d29d3

Please sign in to comment.