Ejemplo n.º 1
0
        public void Init()
        {
            _nugetFeedFolder = Path.Combine(Environment.CurrentDirectory, "testnuget");
            Folder.EnsureDeleted(_nugetFeedFolder);
            Folder.EnsureExists(_nugetFeedFolder);

            var version10 = new Version(1, 0);

            TestPackages.CopyHostPackageTo(_nugetFeedFolder);
            TestPackages.CopyTest10To(_nugetFeedFolder);

            _basePath = Folder.Combine(_nugetFeedFolder, "extracted");

            _context = new DeploymentTaskContext()
            {
                Folders = new ServiceFolders
                {
                    DeployFolder = (FullPath)_basePath,
                },
                KeepOnUpdate   = new FileList(new string[0]),
                PackageDetails = new PackageDetails(
                    "Codestellation.Galaxy.Host",
                    _nugetFeedFolder,
                    version10)
            };
            _context.Parameters.Version = version10.ToString();
            new InstallPackage().Execute(_context);
        }
Ejemplo n.º 2
0
        public void CreateFeed()
        {
            _nugetFeedFolder = Path.Combine(Environment.CurrentDirectory, "testnuget");

            Folder.EnsureDeleted(_nugetFeedFolder);
            Folder.EnsureExists(_nugetFeedFolder);

            TestPackages.CopyTest10To(_nugetFeedFolder);
            TestPackages.CopyTest11To(_nugetFeedFolder);
        }
Ejemplo n.º 3
0
        public void Init()
        {
            _nugetFeedFolder = Path.Combine(Environment.CurrentDirectory, "testnuget");

            Folder.EnsureDeleted(_nugetFeedFolder);
            Folder.EnsureExists(_nugetFeedFolder);

            TestPackages.CopyHostPackageTo(_nugetFeedFolder);
            TestPackages.CopyTest10To(_nugetFeedFolder);

            _targetPath = Path.Combine(_nugetFeedFolder, "extracted");
        }
Ejemplo n.º 4
0
        public void Init()
        {
            _nugetFeedFolder = Path.Combine(Environment.CurrentDirectory, "testnuget");
            Folder.EnsureDeleted(_nugetFeedFolder);
            Folder.EnsureExists(_nugetFeedFolder);

            var version10 = new Version(1, 0);

            TestPackages.CopyHostPackageTo(_nugetFeedFolder);
            TestPackages.CopyTest10To(_nugetFeedFolder);

            _basePath = Folder.Combine(_nugetFeedFolder, "extracted");

            var packageDetails = new PackageDetails("Codestellation.Galaxy.Host", _nugetFeedFolder, version10);
            var installPackage = new InstallPackage(_basePath, packageDetails, FileList.Empty);

            var stringWriter = new StringWriter();

            _context = new DeploymentTaskContext(stringWriter);
            installPackage.Execute(_context);
        }