public GitCmdDriver(string pathToGit, INuKeeperLogger logger, IFolder workingFolder, GitUsernamePasswordCredentials credentials) { if (string.IsNullOrWhiteSpace(pathToGit)) { throw new ArgumentNullException(nameof(pathToGit)); } if (Path.GetFileNameWithoutExtension(pathToGit) != "git") { throw new InvalidOperationException($"Invalid path '{pathToGit}'. Path must point to 'git' cmd"); } _pathGit = pathToGit; _logger = logger; WorkingFolder = workingFolder ?? throw new ArgumentNullException(nameof(workingFolder)); _gitCredentials = credentials ?? throw new ArgumentNullException(nameof(credentials)); }
public RepositoryUpdater( INuGetSourcesReader nugetSourcesReader, IUpdateFinder updateFinder, IPackageUpdateSelection updateSelection, IPackageUpdater packageUpdater, INuKeeperLogger logger, SolutionsRestore solutionsRestore, IAvailableUpdatesReporter availableUpdatesReporter, UserSettings settings) { _nugetSourcesReader = nugetSourcesReader; _updateFinder = updateFinder; _updateSelection = updateSelection; _packageUpdater = packageUpdater; _logger = logger; _solutionsRestore = solutionsRestore; _availableUpdatesReporter = availableUpdatesReporter; _settings = settings; }
public LibGit2SharpDriver(INuKeeperLogger logger, IFolder workingFolder, GitUsernamePasswordCredentials credentials, User user) { if (workingFolder == null) { throw new ArgumentNullException(nameof(workingFolder)); } if (credentials == null) { throw new ArgumentNullException(nameof(credentials)); } _logger = logger; WorkingFolder = workingFolder; _gitCredentials = new UsernamePasswordCredentials { Password = credentials.Password, Username = credentials.Username }; _identity = GetUserIdentity(user); }
public static void Log(this INuKeeperLogger logger, LogData data) { if (data == null) { throw new ArgumentNullException(nameof(data)); } if (logger == null) { throw new ArgumentNullException(nameof(logger)); } if (!string.IsNullOrWhiteSpace(data.Terse)) { logger.Minimal(data.Terse); } if (!string.IsNullOrWhiteSpace(data.Info)) { logger.Normal(data.Info); } }
public AzureDevOpsPlatform(INuKeeperLogger logger, IHttpClientFactory clientFactory) { _logger = logger; _clientFactory = clientFactory; }
public ReportStreamSource(INuKeeperLogger logger) { _logger = logger; }
public ProjectFileReader(INuKeeperLogger logger) { _logger = logger; _packageInProjectReader = new PackageInProjectReader(logger); }
public PackageVersionsLookup(ILogger nuGetLogger, INuKeeperLogger nuKeeperLogger) { _nuGetLogger = nuGetLogger; _nuKeeperLogger = nuKeeperLogger; }
public ProjectFileReader(INuKeeperLogger logger) { _logger = logger; }
public FolderFactory(INuKeeperLogger logger) { _logger = logger; }
public OctokitClient(INuKeeperLogger logger) { _logger = logger; }
public PackagesFileReader(INuKeeperLogger logger) { _logger = logger; }
public RepositoryFilter(IGitHub gitHubClient, INuKeeperLogger logger) { _gitHubClient = gitHubClient; _logger = logger; }
public LibGit2SharpDiscoveryDriver(INuKeeperLogger logger) { _logger = logger; }
public PackageInProjectReader(INuKeeperLogger logger) { _logger = logger; }
public PackageInProjectTopologicalSort(INuKeeperLogger logger) { _logger = logger; }
public BitbucketRepositoryDiscovery(INuKeeperLogger logger) { _logger = logger; }
public NuspecFileReader(INuKeeperLogger logger) { _logger = logger; }
public Folder(INuKeeperLogger logger, DirectoryInfo root) { _logger = logger; _root = root; }
public DirectoryBuildTargetsReader(INuKeeperLogger logger) { _logger = logger; _packageInProjectReader = new PackageInProjectReader(logger); }
public AzureDevOpsPlatform(INuKeeperLogger logger) { _logger = logger; }
public NuGetLogger(INuKeeperLogger logger) { _logger = logger; }
public BitbucketLocalRepositoryDiscovery(INuKeeperLogger logger, ICollaborationPlatform collaborationPlatform, CollaborationPlatformSettings settings) { _logger = logger; _collaborationPlatform = collaborationPlatform; _setting = settings; }
public ExistingCommitFilter(ICollaborationFactory collaborationFactory, INuKeeperLogger logger) { _collaborationFactory = collaborationFactory; _logger = logger; }
public GitHubRepositoryDiscoveryCreator(ICreate <IGitHub> githubCreator, INuKeeperLogger logger) { _logger = logger; _githubCreator = githubCreator; }
public TopologicalSort(INuKeeperLogger logger) { _logger = logger; }
public PackageUpdateSetSort(INuKeeperLogger logger) { _logger = logger; }
public UpdateSelection(INuKeeperLogger logger) { _logger = logger; }
public NuGetConfigFileReader(INuKeeperLogger logger) { _logger = logger; }
public GitlabPlatform(INuKeeperLogger logger) { _logger = logger; }