Example #1
0
        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));
        }
Example #2
0
 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;
 }
Example #3
0
        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);
            }
        }
Example #5
0
 public AzureDevOpsPlatform(INuKeeperLogger logger, IHttpClientFactory clientFactory)
 {
     _logger = logger;
     _clientFactory = clientFactory;
 }
Example #6
0
 public ReportStreamSource(INuKeeperLogger logger)
 {
     _logger = logger;
 }
Example #7
0
 public ProjectFileReader(INuKeeperLogger logger)
 {
     _logger = logger;
     _packageInProjectReader = new PackageInProjectReader(logger);
 }
Example #8
0
 public PackageVersionsLookup(ILogger nuGetLogger, INuKeeperLogger nuKeeperLogger)
 {
     _nuGetLogger    = nuGetLogger;
     _nuKeeperLogger = nuKeeperLogger;
 }
 public ProjectFileReader(INuKeeperLogger logger)
 {
     _logger = logger;
 }
Example #10
0
 public FolderFactory(INuKeeperLogger logger)
 {
     _logger = logger;
 }
Example #11
0
 public OctokitClient(INuKeeperLogger logger)
 {
     _logger = logger;
 }
 public PackagesFileReader(INuKeeperLogger logger)
 {
     _logger = logger;
 }
Example #13
0
 public RepositoryFilter(IGitHub gitHubClient, INuKeeperLogger logger)
 {
     _gitHubClient = gitHubClient;
     _logger       = logger;
 }
Example #14
0
 public LibGit2SharpDiscoveryDriver(INuKeeperLogger logger)
 {
     _logger = logger;
 }
Example #15
0
 public PackageInProjectReader(INuKeeperLogger logger)
 {
     _logger = logger;
 }
Example #16
0
 public PackageInProjectTopologicalSort(INuKeeperLogger logger)
 {
     _logger = logger;
 }
Example #17
0
 public BitbucketRepositoryDiscovery(INuKeeperLogger logger)
 {
     _logger = logger;
 }
Example #18
0
 public NuspecFileReader(INuKeeperLogger logger)
 {
     _logger = logger;
 }
Example #19
0
 public Folder(INuKeeperLogger logger, DirectoryInfo root)
 {
     _logger = logger;
     _root   = root;
 }
Example #20
0
 public DirectoryBuildTargetsReader(INuKeeperLogger logger)
 {
     _logger = logger;
     _packageInProjectReader = new PackageInProjectReader(logger);
 }
Example #21
0
 public AzureDevOpsPlatform(INuKeeperLogger logger)
 {
     _logger = logger;
 }
Example #22
0
 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;
 }
Example #25
0
 public GitHubRepositoryDiscoveryCreator(ICreate <IGitHub> githubCreator, INuKeeperLogger logger)
 {
     _logger        = logger;
     _githubCreator = githubCreator;
 }
Example #26
0
 public TopologicalSort(INuKeeperLogger logger)
 {
     _logger = logger;
 }
Example #27
0
 public PackageUpdateSetSort(INuKeeperLogger logger)
 {
     _logger = logger;
 }
Example #28
0
 public UpdateSelection(INuKeeperLogger logger)
 {
     _logger = logger;
 }
Example #29
0
 public NuGetConfigFileReader(INuKeeperLogger logger)
 {
     _logger = logger;
 }
Example #30
0
 public GitlabPlatform(INuKeeperLogger logger)
 {
     _logger = logger;
 }