public static FileCopyOptions CopyFile(this ProtoServer protoServer, string from) { var proto = new ProtoCopyFileTask(new DotNetPath(), from); protoServer.RegisterProtoTask(proto); return(proto); }
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); }
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); }
public static FileCopyOptions CopyFile(this ProtoServer protoServer, string from) { var proto = new ProtoCopyFileTask(new DotNetPath(), from); protoServer.RegisterProtoTask(proto); return proto; }