public ExecuteCore(IFileSystem fileSystem) { if (fileSystem == null) throw new ArgumentNullException("fileSystem"); this.fileSystem = fileSystem; gitVersionCache = new GitVersionCache(fileSystem); }
public ExecuteCore(IFileSystem fileSystem, IEnvironment environment, ConfigFileLocator configFileLocator = null) { this.fileSystem = fileSystem ?? throw new ArgumentNullException(nameof(fileSystem)); this.environment = environment; this.configFileLocator = configFileLocator ?? ConfigFileLocator.Default; gitVersionCache = new GitVersionCache(fileSystem); }
public ExecuteCore(IFileSystem fileSystem, IEnvironment environment, ILog log, IConfigFileLocator configFileLocator = null) { this.fileSystem = fileSystem ?? throw new ArgumentNullException(nameof(fileSystem)); this.environment = environment; this.log = log; this.configFileLocator = configFileLocator ?? new DefaultConfigFileLocator(fileSystem, log); gitVersionCache = new GitVersionCache(fileSystem, log); }
public ExecuteCore(IFileSystem fileSystem) { if (fileSystem == null) { throw new ArgumentNullException("fileSystem"); } this.fileSystem = fileSystem; gitVersionCache = new GitVersionCache(fileSystem); }