예제 #1
0
 public PackageSender(
     PackageLoader loader,
     PackageInfoFileNamer fileNamer
     )
 {
     FileNamer = fileNamer;
     Loader    = loader;
 }
예제 #2
0
        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();
        }
예제 #3
0
 public PackageSaver()
 {
     FileNamer = new PackageInfoFileNamer();
 }
예제 #4
0
 public PackageSaver(
     PackageInfoFileNamer fileNamer
     )
 {
     FileNamer = fileNamer;
 }