Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Switch to insecure SSL.

  • Loading branch information...
commit c999da10c9bfc9289bcb890eac7c312f4f046193 1 parent 3f827ac
@andrerod andrerod authored
View
2  lib/cli/commands/site_.js
@@ -155,9 +155,7 @@ exports.init = function (cli) {
} else if (options.git) {
context.lvcClient = LinkedRevisionControl.createClient(cli, 'git');
}
- }
- if (context.lvcClient) {
context.lvcClient.init(context, _);
}
View
21 lib/cli/linkedrevisioncontrol.js
@@ -222,6 +222,7 @@ GithubClient.prototype.createOrUpdateHook = function GithubClient_prototype_crea
return __this.getHooks(username, repository, __cb(_, __frame, 13, 14, function ___(__0, __1) { hooks = __1;
+ console.log(hooks);
parsedDeployUri = url.parse(deployUri);
@@ -238,20 +239,20 @@ GithubClient.prototype.createOrUpdateHook = function GithubClient_prototype_crea
existingHook.config.url = hook.config.url;
existingHook.user = username;
existingHook.repo = repository;
- return __this.updateHook(existingHook, __cb(_, __frame, 30, 21, function ___(__0, __2) { existingHook = __2;
- return __this.testHook(existingHook, __cb(_, __frame, 31, 6, __then, true)); }, true)); } else {
+ return __this.updateHook(existingHook, __cb(_, __frame, 31, 21, function ___(__0, __2) { existingHook = __2;
+ return __this.testHook(existingHook, __cb(_, __frame, 32, 6, __then, true)); }, true)); } else {
__this.cli.output.info("Link already established"); __then(); } ; })(__then); } else {
- return __this.createHook(hook, __cb(_, __frame, 36, 11, function ___(__0, __3) { hook = __3;
+ return __this.createHook(hook, __cb(_, __frame, 37, 11, function ___(__0, __3) { hook = __3;
hook.user = username;
hook.repo = repository;
- return __this.testHook(hook, __cb(_, __frame, 39, 4, __then, true)); }, true)); } ; })(_); }, true)); });};
+ return __this.testHook(hook, __cb(_, __frame, 40, 4, __then, true)); }, true)); } ; })(_); }, true)); });};
-GithubClient.prototype.createHook = function GithubClient_prototype_createHook__9(hook, _) { var progress, __this = this; var __frame = { name: "GithubClient_prototype_createHook__9", line: 254 }; return __func(_, this, arguments, GithubClient_prototype_createHook__9, 1, __frame, function __$GithubClient_prototype_createHook__9() {
+GithubClient.prototype.createHook = function GithubClient_prototype_createHook__9(hook, _) { var progress, __this = this; var __frame = { name: "GithubClient_prototype_createHook__9", line: 255 }; return __func(_, this, arguments, GithubClient_prototype_createHook__9, 1, __frame, function __$GithubClient_prototype_createHook__9() {
progress = __this.cli.progress("Creating new hook"); return (function ___(__then) { (function ___(_) { __tryCatch(_, function __$GithubClient_prototype_createHook__9() {
@@ -261,7 +262,7 @@ GithubClient.prototype.createHook = function GithubClient_prototype_createHook__
-GithubClient.prototype.updateHook = function GithubClient_prototype_updateHook__10(hook, _) { var progress, __this = this; var __frame = { name: "GithubClient_prototype_updateHook__10", line: 264 }; return __func(_, this, arguments, GithubClient_prototype_updateHook__10, 1, __frame, function __$GithubClient_prototype_updateHook__10() {
+GithubClient.prototype.updateHook = function GithubClient_prototype_updateHook__10(hook, _) { var progress, __this = this; var __frame = { name: "GithubClient_prototype_updateHook__10", line: 265 }; return __func(_, this, arguments, GithubClient_prototype_updateHook__10, 1, __frame, function __$GithubClient_prototype_updateHook__10() {
progress = __this.cli.progress("Updating hook"); return (function ___(__then) { (function ___(_) { __tryCatch(_, function __$GithubClient_prototype_updateHook__10() {
@@ -271,7 +272,7 @@ GithubClient.prototype.updateHook = function GithubClient_prototype_updateHook__
-GithubClient.prototype.testHook = function GithubClient_prototype_testHook__11(hook, _) { var progress, __this = this; var __frame = { name: "GithubClient_prototype_testHook__11", line: 274 }; return __func(_, this, arguments, GithubClient_prototype_testHook__11, 1, __frame, function __$GithubClient_prototype_testHook__11() {
+GithubClient.prototype.testHook = function GithubClient_prototype_testHook__11(hook, _) { var progress, __this = this; var __frame = { name: "GithubClient_prototype_testHook__11", line: 275 }; return __func(_, this, arguments, GithubClient_prototype_testHook__11, 1, __frame, function __$GithubClient_prototype_testHook__11() {
progress = __this.cli.progress("Testing new hook"); return (function ___(__then) { (function ___(_) { __tryCatch(_, function __$GithubClient_prototype_testHook__11() {
@@ -281,7 +282,7 @@ GithubClient.prototype.testHook = function GithubClient_prototype_testHook__11(h
-GithubClient.prototype.getHooks = function GithubClient_prototype_getHooks__12(username, repository, _) { var progress, __this = this; var __frame = { name: "GithubClient_prototype_getHooks__12", line: 284 }; return __func(_, this, arguments, GithubClient_prototype_getHooks__12, 2, __frame, function __$GithubClient_prototype_getHooks__12() {
+GithubClient.prototype.getHooks = function GithubClient_prototype_getHooks__12(username, repository, _) { var progress, __this = this; var __frame = { name: "GithubClient_prototype_getHooks__12", line: 285 }; return __func(_, this, arguments, GithubClient_prototype_getHooks__12, 2, __frame, function __$GithubClient_prototype_getHooks__12() {
progress = __this.cli.progress("Retrieving website hooks"); return (function ___(__then) { (function ___(_) { __tryCatch(_, function __$GithubClient_prototype_getHooks__12() {
@@ -294,7 +295,7 @@ GithubClient.prototype.getHooks = function GithubClient_prototype_getHooks__12(u
-GithubClient.prototype._getRemoteUri = function GithubClient_prototype__getRemoteUri__13(_) { var progress, originUri, __this = this; var __frame = { name: "GithubClient_prototype__getRemoteUri__13", line: 297 }; return __func(_, this, arguments, GithubClient_prototype__getRemoteUri__13, 0, __frame, function __$GithubClient_prototype__getRemoteUri__13() {
+GithubClient.prototype._getRemoteUri = function GithubClient_prototype__getRemoteUri__13(_) { var progress, originUri, __this = this; var __frame = { name: "GithubClient_prototype__getRemoteUri__13", line: 298 }; return __func(_, this, arguments, GithubClient_prototype__getRemoteUri__13, 0, __frame, function __$GithubClient_prototype__getRemoteUri__13() {
progress = __this.cli.progress("Retrieving local git repositories");
originUri = null; return (function ___(__then) { (function ___(_) { __tryCatch(_, function __$GithubClient_prototype__getRemoteUri__13() {
@@ -310,7 +311,7 @@ GithubClient.prototype._getRemoteUri = function GithubClient_prototype__getRemot
return _(null, originUri); }); }); });};
-GithubClient.prototype._getRemote = function GithubClient_prototype__getRemote__14(name, _) { var remotes, origin, __this = this; var __frame = { name: "GithubClient_prototype__getRemote__14", line: 313 }; return __func(_, this, arguments, GithubClient_prototype__getRemote__14, 1, __frame, function __$GithubClient_prototype__getRemote__14() {
+GithubClient.prototype._getRemote = function GithubClient_prototype__getRemote__14(name, _) { var remotes, origin, __this = this; var __frame = { name: "GithubClient_prototype__getRemote__14", line: 314 }; return __func(_, this, arguments, GithubClient_prototype__getRemote__14, 1, __frame, function __$GithubClient_prototype__getRemote__14() {
return __this._exec("git remote -v", __cb(_, __frame, 1, 16, function ___(__0, __1) { remotes = __1;
origin = ((remotes.stdout + remotes.stderr)).split("\n").filter(function(item) {
return item.split(" ").some(function(it) {
View
3  lib/cli/linkedrevisioncontrol_.js
@@ -217,11 +217,12 @@ GithubClient.prototype.createOrUpdateHook = function (username, repository, depl
events: [ 'push' ],
config: {
url: deployUri,
- content_type: 'json'
+ insecure_ssl: '1'
}
};
var hooks = this.getHooks(username, repository, _);
+ console.log(hooks);
var parsedDeployUri = url.parse(deployUri);
var existingHook = hooks.filter(function (hook) {
if (hook.config) {
Please sign in to comment.
Something went wrong with that request. Please try again.