public Downloader(IFileDownloader fileDownloader, IFileSystem fileSystem, string product, IDownloadUrlResolver downloadUrlResolver) { _fileDownloader = fileDownloader; _fileSystem = fileSystem; _product = product; _downloadUrlResolver = downloadUrlResolver; }
public ProductInstaller(IFileSystem fileSystem, ProcessExecutor processExecutor, IFileSystemCommands commands, string installLocation, IDownloadUrlResolver downloadUrlResolver) { _fileSystem = fileSystem; _processExecutor = processExecutor; _commands = commands; _installLocation = installLocation; _downloadUrlResolver = downloadUrlResolver; }
public static InstallJob CreateInstallJob(string product, FileSystem fileSystem, FileSystemCommandsBoundary commands, Func <ProductInstallationMetaData, bool> productMatcher, IDownloadUrlResolver downloadUrlResolver) { var chefProduct = new ChefProduct(product, new InstalledProductsFinder(), new ProductInstaller(fileSystem, new ProcessExecutor(() => new ProcessBoundary()), commands, $@"{ServerSettings.Instance.InstallRoot}\opscode", downloadUrlResolver), productMatcher); return(CreateInstallJob(chefProduct)); }
public static string FullPathToStagedInstaller(this IDownloadUrlResolver resolver, string version) { return(Path.Combine(Downloader.StagingDirectory, resolver.FilenameFor(version))); }
public static DownloadJob CreateDownloadJob(FileSystem fileSystem, string product, IDownloadUrlResolver downloadUrlResolver) { return(new DownloadJob(new Downloader(new FileDownloader(), fileSystem, product, downloadUrlResolver), SystemClock.Instance)); }
public CafeInstaller(IFileSystemCommands commands, IDownloadUrlResolver resolver, string updaterDirectory) { _commands = commands; _resolver = resolver; _updaterDirectory = updaterDirectory; }