public void Bob()
        {
            var settings = new TestSettings();
            settings.Bob = "dru";
            settings.Environment = "PROD";
            HUB.Settings = settings;
            _proto = new ProtoCopyFileTask(new DotNetPath(), "C:\\from\\here");
            _proto.ToDirectory("C:\\to\\there\\{{Environment}}");
            _serv = new DeploymentServer("bob");

            _proto.RegisterRealTasks(_serv);
        }
Beispiel #2
0
        public void CopyFileToUncDirectory()
        {
            var toDir = @"\\srvtestmachine\some_directory";
            var fromDir = @".\bob";
            HUB.Settings = new object();

            var proto = new ProtoCopyFileTask(new DotNetPath(), fromDir);
            proto.ToDirectory(toDir);

            var server = new DeploymentServer("dru");

            proto.RegisterRealTasks(server);
        }