示例#1
0
 public NugetExecutor(EnvironmentSettings environmentSettings, IProcessExecutor processExecutor,
                      IWorkingDirectoriesProvider workingDirectoriesProvider)
 {
     environmentSettings.CheckArgumentNull(nameof(environmentSettings));
     processExecutor.CheckArgumentNull(nameof(processExecutor));
     workingDirectoriesProvider.CheckArgumentNull(nameof(workingDirectoriesProvider));
     _environmentSettings        = environmentSettings;
     _processExecutor            = processExecutor;
     _workingDirectoriesProvider = workingDirectoriesProvider;
 }
示例#2
0
 public InstallNugetPackage(INuGetManager nugetManager, IPackageInstaller packageInstaller,
                            IPackageArchiver packageArchiver, IWorkingDirectoriesProvider workingDirectoriesProvider)
 {
     nugetManager.CheckArgumentNull(nameof(nugetManager));
     packageInstaller.CheckArgumentNull(nameof(packageInstaller));
     packageArchiver.CheckArgumentNull(nameof(packageArchiver));
     workingDirectoriesProvider.CheckArgumentNull(nameof(workingDirectoriesProvider));
     _nugetManager               = nugetManager;
     _packageInstaller           = packageInstaller;
     _packageArchiver            = packageArchiver;
     _workingDirectoriesProvider = workingDirectoriesProvider;
 }
示例#3
0
 public NugetPacker(ITemplateProvider templateProvider, IDotnetExecutor dotnetExecutor,
                    IWorkingDirectoriesProvider workingDirectoriesProvider, IFileSystem fileSystem, ILogger logger)
 {
     dotnetExecutor.CheckArgumentNull(nameof(dotnetExecutor));
     templateProvider.CheckArgumentNull(nameof(templateProvider));
     workingDirectoriesProvider.CheckArgumentNull(nameof(workingDirectoriesProvider));
     fileSystem.CheckArgumentNull(nameof(fileSystem));
     logger.CheckArgumentNull(nameof(logger));
     _dotnetExecutor             = dotnetExecutor;
     _templateProvider           = templateProvider;
     _workingDirectoriesProvider = workingDirectoriesProvider;
     _fileSystem = fileSystem;
     _logger     = logger;
 }
示例#4
0
 public PackageArchiver(IPackageUtilities packageUtilities, ICompressionUtilities compressionUtilities,
                        IWorkingDirectoriesProvider workingDirectoriesProvider, IFileSystem fileSystem, ILogger logger)
 {
     packageUtilities.CheckArgumentNull(nameof(packageUtilities));
     compressionUtilities.CheckArgumentNull(nameof(compressionUtilities));
     workingDirectoriesProvider.CheckArgumentNull(nameof(workingDirectoriesProvider));
     fileSystem.CheckArgumentNull(nameof(fileSystem));
     logger.CheckArgumentNull(nameof(logger));
     _packageUtilities           = packageUtilities;
     _compressionUtilities       = compressionUtilities;
     _workingDirectoriesProvider = workingDirectoriesProvider;
     _fileSystem = fileSystem;
     _logger     = logger;
 }
示例#5
0
 public NugetPackageRestorer(INugetPackagesProvider nugetPackagesProvider, IPackageArchiver packageArchiver,
                             ITemplateProvider templateProvider, IDotnetExecutor dotnetExecutor,
                             IWorkingDirectoriesProvider workingDirectoriesProvider, IFileSystem fileSystem, ILogger logger)
 {
     nugetPackagesProvider.CheckArgumentNull(nameof(nugetPackagesProvider));
     packageArchiver.CheckArgumentNull(nameof(packageArchiver));
     dotnetExecutor.CheckArgumentNull(nameof(dotnetExecutor));
     templateProvider.CheckArgumentNull(nameof(templateProvider));
     workingDirectoriesProvider.CheckArgumentNull(nameof(workingDirectoriesProvider));
     fileSystem.CheckArgumentNull(nameof(fileSystem));
     logger.CheckArgumentNull(nameof(logger));
     _nugetPackagesProvider      = nugetPackagesProvider;
     _packageArchiver            = packageArchiver;
     _dotnetExecutor             = dotnetExecutor;
     _templateProvider           = templateProvider;
     _workingDirectoriesProvider = workingDirectoriesProvider;
     _fileSystem = fileSystem;
     _logger     = logger;
 }
示例#6
0
 public TemplateProvider(IWorkingDirectoriesProvider workingDirectoriesProvider)
 {
     workingDirectoriesProvider.CheckArgumentNull(nameof(workingDirectoriesProvider));
     _workingDirectoriesProvider = workingDirectoriesProvider;
 }