Permalink
Browse files

#408: azure site create command --github does not parse -up option

  • Loading branch information...
1 parent ff447c2 commit dfa3c1f8c5327e78856e6d51f021cf6702cc7f1a Andre Rodrigues committed Oct 29, 2012
@@ -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 full name (i.e. user/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("--githubusername <username>", "The github username").option("--githubpassword <password>", "The github password").option("--githubrepository <repository>", "The github repository full name (i.e. user/repository)").execute(function __4(name, options, _) { var context;
@@ -211,7 +211,7 @@ exports.init = function(cli) {
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 }, 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)); }); });
+ 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.githubusername, password: options.githubpassword, repositoryFullName: options.githubrepository }, 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)); }); });
@@ -174,19 +174,19 @@ exports.init = function (cli) {
.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)')
+ .option('--githubusername <username>', 'The github username')
+ .option('--githubpassword <password>', 'The github password')
+ .option('--githubrepository <repository>', 'The github repository full name (i.e. user/repository)')
.execute(function (name, options, _) {
var context = {
subscription: cli.category('account').lookupSubscriptionId(options.subscription),
site: {
name: name
},
github: {
- username: options.username,
- password: options.pass,
- repositoryFullName: options.repository
+ username: options.githubusername,
+ password: options.githubpassword,
+ repositoryFullName: options.githubrepository
},
flags: { }
};
Oops, something went wrong.

0 comments on commit dfa3c1f

Please sign in to comment.