예제 #1
0
 public ConfigProvider(IFileSystem fileSystem, ILog log, IConfigFileLocator configFileLocator,
                       IOptions <GitVersionOptions> options, IConfigInitWizard configInitWizard, IGitRepositoryInfo repositoryInfo)
 {
     this.fileSystem        = fileSystem.NotNull();
     this.log               = log.NotNull();
     this.configFileLocator = configFileLocator.NotNull();
     this.options           = options.NotNull();
     this.configInitWizard  = configInitWizard.NotNull();
     this.repositoryInfo    = repositoryInfo.NotNull();
 }
예제 #2
0
 public GitVersionCacheKeyFactory(IFileSystem fileSystem, ILog log,
                                  IOptions <GitVersionOptions> options, IConfigFileLocator configFileLocator,
                                  IGitRepository gitRepository, IGitRepositoryInfo repositoryInfo)
 {
     this.fileSystem        = fileSystem.NotNull();
     this.log               = log.NotNull();
     this.options           = options.NotNull();
     this.configFileLocator = configFileLocator.NotNull();
     this.gitRepository     = gitRepository.NotNull();
     this.repositoryInfo    = repositoryInfo.NotNull();
 }
예제 #3
0
 public GitPreparer(ILog log, IEnvironment environment, ICurrentBuildAgent?buildAgent, IOptions <GitVersionOptions> options,
                    IMutatingGitRepository repository, IGitRepositoryInfo repositoryInfo, IRepositoryStore repositoryStore)
 {
     this.log             = log.NotNull();
     this.environment     = environment.NotNull();
     this.repository      = repository.NotNull();
     this.options         = options.NotNull();
     this.repositoryInfo  = repositoryInfo.NotNull();
     this.repositoryStore = repositoryStore.NotNull();
     this.buildAgent      = buildAgent;
     this.retryAction     = new RetryAction <LockedFileException>();
 }
예제 #4
0
    public GitVersionExecutor(ILog log, IConsole console,
                              IConfigFileLocator configFileLocator, IConfigProvider configProvider,
                              IGitVersionCalculateTool gitVersionCalculateTool, IGitVersionOutputTool gitVersionOutputTool,
                              IVersionWriter versionWriter, IHelpWriter helpWriter, IGitRepositoryInfo repositoryInfo)
    {
        this.log               = log.NotNull();
        this.console           = console.NotNull();
        this.configFileLocator = configFileLocator.NotNull();
        this.configProvider    = configProvider.NotNull();

        this.gitVersionCalculateTool = gitVersionCalculateTool.NotNull();
        this.gitVersionOutputTool    = gitVersionOutputTool.NotNull();

        this.versionWriter  = versionWriter.NotNull();
        this.helpWriter     = helpWriter.NotNull();
        this.repositoryInfo = repositoryInfo.NotNull();
    }
예제 #5
0
 public GitVersionCache(IFileSystem fileSystem, ILog log, IGitRepositoryInfo repositoryInfo)
 {
     this.fileSystem     = fileSystem.NotNull();
     this.log            = log.NotNull();
     this.repositoryInfo = repositoryInfo.NotNull();
 }