Example #1
0
 /// <inheritdoc/>
 public Task <bool> Push(string org, string repository)
 {
     try
     {
         return(_decoratedService.Push(org, repository));
     }
     catch (Exception ex)
     {
         LogError(ex, "Push", org, repository);
         throw;
     }
 }
        public async Task <ActionResult <HttpResponseMessage> > Push(string org, string repository)
        {
            bool pushSuccess = await _sourceControl.Push(org, repository);

            if (pushSuccess)
            {
                return(new HttpResponseMessage(HttpStatusCode.OK));
            }
            else
            {
                return(new HttpResponseMessage(HttpStatusCode.InternalServerError));
            }
        }
Example #3
0
        public async Task <ActionResult> Push(string org, string repository)
        {
            bool pushSuccess = await _sourceControl.Push(org, repository);

            if (pushSuccess)
            {
                return(Ok());
            }
            else
            {
                return(StatusCode(StatusCodes.Status500InternalServerError));
            }
        }
Example #4
0
 public void Push(string owner, string repository)
 {
     _sourceControl.Push(owner, repository);
 }
Example #5
0
 public void Push(string org, string repository)
 {
     _sourceControl.Push(org, repository);
 }