Esempio n. 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();
 }
Esempio n. 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();
 }
    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();
    }