Permalink
Browse files

Removing gitdeployment file

  • Loading branch information...
1 parent 222cca8 commit fab8be7a4209cd6cbbe714db25ba0a3cb76147b8 Andre Rodrigues committed Oct 22, 2012
Showing with 2 additions and 150 deletions.
  1. +0 −74 lib/cli/commands/githubdeployment.js
  2. +0 −76 lib/cli/commands/githubdeployment_.js
  3. +2 −0 test/cli/commands/cli.site-tests.js
@@ -1,74 +0,0 @@
-/*** Generated by streamline 0.4.5 (callbacks) - DO NOT EDIT ***/ var __rt=require('streamline/lib/callbacks/runtime').runtime(__filename),__func=__rt.__func,__cb=__rt.__cb; var url = require("url");
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-var LinkedRevisionControl = require("../linkedrevisioncontrol.js");
-
-exports.init = function(cli) {
-
- var log = cli.output;
- var site = cli.category("site");
- var scm = site.category("deployment");
-
- 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 username").option("-up, --pass <pass>", "The password").execute(function __1(name, options, _) { var context;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- function promptForGithubCredentials(_) { var __frame = { name: "promptForGithubCredentials", line: 49 }; return __func(_, this, arguments, promptForGithubCredentials, 0, __frame, function __$promptForGithubCredentials() {
- log.help("Enter your github credentials"); return (function __$promptForGithubCredentials(__then) {
-
- if (options.username) {
- context.username = options.username; __then(); } else {
-
- return prompt("Username: ", __cb(_, __frame, 6, 29, function ___(__0, __1) { context.username = __1; __then(); }, true)); } ; })(function __$promptForGithubCredentials() { return (function __$promptForGithubCredentials(__then) {
-
-
- if (options.pass) {
- context.password = options.pass; __then(); } else {
-
- return promptPassword("Password: ", __cb(_, __frame, 12, 29, function ___(__0, __2) { context.password = __2; __then(); }, true)); } ; })(function __$promptForGithubCredentials() {
-
-
- context.lvcClient = LinkedRevisionControl.createClient(cli, "github");
- return context.lvcClient.authenticate(context.username, context.password, __cb(_, __frame, 16, 8, _, true)); }); }); }); }; var __frame = { name: "__1", line: 33 }; return __func(_, this, arguments, __1, 2, __frame, function __$__1() { context = { subscription: cli.category("account").lookupSubscriptionId(options.subscription), site: { name: name } }; return scm.ensureRepositoryUri(context, __cb(_, __frame, 9, 6, function __$__1() { return promptForGithubCredentials(__cb(_, __frame, 10, 6, function __$__1() { context.flags = { forceRepositorySelection: true }; return context.lvcClient.init(context, __cb(_, __frame, 13, 6, function __$__1() { return context.lvcClient.deploy(context, __cb(_, __frame, 14, 6, _, true)); }, true)); }, true)); }, true)); }); });
-
-
-
- function prompt(label, callback) {
- cli.prompt(label, function(x) { callback(undefined, x); }); };
-
-
- function promptPassword(label, callback) {
- cli.passwordOnce(label, function(x) { callback(undefined, x); }); };};
@@ -1,76 +0,0 @@
-/**
-* Copyright (c) Microsoft. All rights reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-var url = require('url');
-
-var LinkedRevisionControl = require('../linkedrevisioncontrol.js');
-
-exports.init = function (cli) {
-
- var log = cli.output;
- var site = cli.category('site');
- var scm = site.category('deployment');
-
- 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 username')
- .option('-up, --pass <pass>', 'The password')
- .execute(function (name, options, _) {
- var context = {
- subscription: cli.category('account').lookupSubscriptionId(options.subscription),
- site: {
- name: name
- }
- };
-
- // Fetch site and repository data
- scm.ensureRepositoryUri(context, _);
- promptForGithubCredentials(_);
-
- context.flags = { forceRepositorySelection: true };
- context.lvcClient.init(context, _);
- context.lvcClient.deploy(context, _);
-
- function promptForGithubCredentials(_) {
- log.help('Enter your github credentials');
-
- if (options.username) {
- context.username = options.username;
- } else {
- context.username = prompt('Username: ', _);
- }
-
- if (options.pass) {
- context.password = options.pass;
- } else {
- context.password = promptPassword('Password: ', _);
- }
-
- context.lvcClient = LinkedRevisionControl.createClient(cli, 'github');
- context.lvcClient.authenticate(context.username, context.password, _);
- }
- });
-
- function prompt(label, callback) {
- cli.prompt(label, function (x) { callback(undefined, x); });
- }
-
- function promptPassword(label, callback) {
- cli.passwordOnce(label, function (x) { callback(undefined, x); });
- }
-};
@@ -51,6 +51,8 @@ suite('cli', function(){
siteExists.should.be.ok;
+ console.log('vou pro delete');
+
// Delete created site
cmd = ('node cli.js site delete ' + siteName + ' --json').split(' ');
capture(function() {

0 comments on commit fab8be7

Please sign in to comment.