private void CreateStopLock() { if (!StopLockExists) { File.Create(StopLock).Dispose(); container.SetRWPermissions(StopLock); } }
public DeploymentMetadata(ApplicationContainer container, string deploymentDatetime) { this.file = Path.Combine(container.ContainerDir, "app-deployments", deploymentDatetime, "metadata.json"); if (File.Exists(file)) { Load(); } else { using (File.Create(this.file)) { }; container.SetRWPermissions(this.file); this.metadata = this.defaults; Save(); } }
public DeploymentMetadata(ApplicationContainer container, string deploymentDatetime) { this.file = Path.Combine(container.ContainerDir, "app-deployments", deploymentDatetime, "metadata.json"); if(File.Exists(file)) { Load(); } else { using (File.Create(this.file)) { }; container.SetRWPermissions(this.file); this.metadata = this.defaults; Save(); } }