public PackageSender( PackageLoader loader, PackageInfoFileNamer fileNamer ) { FileNamer = fileNamer; Loader = loader; }
public void Construct( string workingDirectory, string packagesDirectory ) { WorkingDirectory = workingDirectory; PackagesDirectory = packagesDirectory; var fileNamer = new PackageInfoFileNamer(); Retriever = new PackageInstaller(); Creator = new PackageCreator(); FileFinder = new FileFinder(); Loader = new PackageLoader(); Builder = new PackageBuilder( Loader, new FileZipper( FileFinder, new DirectoryMover() ), new PackageZipFileNamer() ); Saver = new PackageSaver( fileNamer ); Adder = new PackageFileAdder( FileFinder, Loader, Saver ); Sender = new PackageSender( Loader, fileNamer ); Remover = new PackageFileRemover(); Scanner = new PackageFileScanner( FileFinder ); Repositories = new RepositoryManager(); Installers = new InstallManager(); Versions = new VersionManager(); }
public PackageSaver() { FileNamer = new PackageInfoFileNamer(); }
public PackageSaver( PackageInfoFileNamer fileNamer ) { FileNamer = fileNamer; }