public static List <Commit> CloneAndGetLogs(string gitsrc, string cloneto) { var di = new System.IO.DirectoryInfo(cloneto); if (di.GetDirectories().Count() == 0) { GitClone.Clone(gitsrc, cloneto); } else { var proc = new Process(); proc.StartInfo.CreateNoWindow = true; proc.StartInfo.WorkingDirectory = di.GetDirectories().First().FullName; proc.StartInfo.FileName = "git"; proc.StartInfo.Arguments = "pull"; proc.StartInfo.UseShellExecute = false; proc.Start(); proc.WaitForExit(); } di = new System.IO.DirectoryInfo(cloneto); cloneto = di.GetDirectories().First().FullName; var ret = GetLogs(cloneto); return(ret); }
public IISXCoreRunnable( IISXCoreConfig config, IISExpressExe iisExpress, ILogger <IISXCoreRunnable> logger, ISender sender, GitClone gitClone) : base(config, logger, sender) { _iisExpress = iisExpress; _logger = logger; _gitClone = gitClone; }
protected DotnetRunnableBase(TConfig config, DotnetCliBundle dotnet, ILogger <DotnetRunnableBase <TContext, TConfig> > logger, ISender sender, GitClone gitClone ) : base(config, logger, sender) { Dotnet = dotnet; _logger = logger; _gitClone = gitClone; }
public CloneMaker(ILogger <CloneMaker> logger, IConfigurator configurator, GitClone gitClone) { _logger = logger; _configurator = configurator; _gitClone = gitClone; }
public AspNetCoreRunnable(AspNetCore config, DotnetCliBundle dotnet, ILogger <AspNetCoreRunnable> logger, ISender sender, GitClone gitClone) : base(config, dotnet, logger, sender, gitClone) { }