public void Log(Task task, Level level) { var utilities = new UtilityFunctions(task.Project, task.Project.Properties); task.Log(level, "Branch Build Directory: " + BranchBuildDirectory); task.Log(level, "Tools Directory: " + ToolsDirectory); task.Log(level, "Nant App Directory: " + NantAppDirectory); task.Log(level, "Nant Project Directory: " + NantProjectDirectory); task.Log(level, "Branch Name: " + BranchName); task.Log(level, "Dist root: " + DistRoot); task.Log(level, "Machine Name: " + MachineName); task.Log(level, "P4 Workspace: " + WorkspaceName); task.Log(level, "NUnit Directory: " + NUnitDirectory); task.Log(level, "Pawn Staging Directory: " + PawnProjectEnvironment.StagingDirectory); task.Log(level, "Audit Staging Directory: " + AuditProjectEnvironment.StagingDirectory); task.Log(level, "Audit Queries Staging Directory: " + AuditQueriesProjectEnvironment.StagingDirectory); task.Log(level, "Support Staging Directory: " + SupportProjectEnvironment.StagingDirectory); task.Log(level, "DSTR Viewer Staging Directory: " + DstrViewerProjectEnvironment.StagingDirectory); task.Log(level, "Deployment Type: " + DeploymentType.ToString()); task.Log(level, "Full Name: " + utilities.GetUserFullName()); task.Log(level, "Email Address: " + utilities.GetUserEmailAddress()); if (DevMode) { task.Log(level, "**** DEV MODE ****"); } Console.WriteLine(); }
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("appLocation"); writer.WriteStringValue(AppLocation); writer.WritePropertyName("environment"); writer.WriteStringValue(Environment.ToString()); writer.WritePropertyName("sapProduct"); writer.WriteStringValue(SapProduct.ToString()); writer.WritePropertyName("deploymentType"); writer.WriteStringValue(DeploymentType.ToString()); writer.WritePropertyName("saps"); writer.WriteNumberValue(Saps); writer.WritePropertyName("dbMemory"); writer.WriteNumberValue(DBMemory); writer.WritePropertyName("databaseType"); writer.WriteStringValue(DatabaseType.ToString()); if (Optional.IsDefined(DBScaleMethod)) { writer.WritePropertyName("dbScaleMethod"); writer.WriteStringValue(DBScaleMethod.Value.ToString()); } if (Optional.IsDefined(HighAvailabilityType)) { writer.WritePropertyName("highAvailabilityType"); writer.WriteStringValue(HighAvailabilityType.Value.ToString()); } writer.WriteEndObject(); }
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); if (Optional.IsDefined(NetworkConfiguration)) { writer.WritePropertyName("networkConfiguration"); writer.WriteObjectValue(NetworkConfiguration); } writer.WritePropertyName("centralServer"); writer.WriteObjectValue(CentralServer); writer.WritePropertyName("applicationServer"); writer.WriteObjectValue(ApplicationServer); writer.WritePropertyName("databaseServer"); writer.WriteObjectValue(DatabaseServer); if (Optional.IsDefined(HighAvailabilityConfig)) { writer.WritePropertyName("highAvailabilityConfig"); writer.WriteObjectValue(HighAvailabilityConfig); } writer.WritePropertyName("deploymentType"); writer.WriteStringValue(DeploymentType.ToString()); writer.WritePropertyName("appResourceGroup"); writer.WriteStringValue(AppResourceGroup); writer.WriteEndObject(); }
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("deploymentType"); writer.WriteStringValue(DeploymentType.ToString()); writer.WritePropertyName("appResourceGroup"); writer.WriteStringValue(AppResourceGroup); writer.WriteEndObject(); }
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("appLocation"); writer.WriteStringValue(AppLocation); writer.WritePropertyName("environment"); writer.WriteStringValue(Environment.ToString()); writer.WritePropertyName("sapProduct"); writer.WriteStringValue(SapProduct.ToString()); writer.WritePropertyName("databaseType"); writer.WriteStringValue(DatabaseType.ToString()); writer.WritePropertyName("deploymentType"); writer.WriteStringValue(DeploymentType.ToString()); writer.WritePropertyName("dbVmSku"); writer.WriteStringValue(DBVmSku); writer.WriteEndObject(); }
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); if (Optional.IsDefined(NetworkConfiguration)) { writer.WritePropertyName("networkConfiguration"); writer.WriteObjectValue(NetworkConfiguration); } if (Optional.IsDefined(DatabaseType)) { writer.WritePropertyName("databaseType"); writer.WriteStringValue(DatabaseType.Value.ToString()); } writer.WritePropertyName("subnetId"); writer.WriteStringValue(SubnetId); writer.WritePropertyName("virtualMachineConfiguration"); writer.WriteObjectValue(VirtualMachineConfiguration); writer.WritePropertyName("deploymentType"); writer.WriteStringValue(DeploymentType.ToString()); writer.WritePropertyName("appResourceGroup"); writer.WriteStringValue(AppResourceGroup); writer.WriteEndObject(); }
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("type"); writer.WriteStringValue(Type); if (Optional.IsDefined(ConnectVia)) { writer.WritePropertyName("connectVia"); writer.WriteObjectValue(ConnectVia); } if (Optional.IsDefined(Description)) { writer.WritePropertyName("description"); writer.WriteStringValue(Description); } if (Optional.IsCollectionDefined(Parameters)) { writer.WritePropertyName("parameters"); writer.WriteStartObject(); foreach (var item in Parameters) { writer.WritePropertyName(item.Key); writer.WriteObjectValue(item.Value); } writer.WriteEndObject(); } if (Optional.IsCollectionDefined(Annotations)) { writer.WritePropertyName("annotations"); writer.WriteStartArray(); foreach (var item in Annotations) { writer.WriteObjectValue(item); } writer.WriteEndArray(); } writer.WritePropertyName("typeProperties"); writer.WriteStartObject(); writer.WritePropertyName("deploymentType"); writer.WriteStringValue(DeploymentType.ToString()); if (Optional.IsDefined(HostName)) { writer.WritePropertyName("hostName"); writer.WriteObjectValue(HostName); } if (Optional.IsDefined(Port)) { writer.WritePropertyName("port"); writer.WriteObjectValue(Port); } if (Optional.IsDefined(ServiceUri)) { writer.WritePropertyName("serviceUri"); writer.WriteObjectValue(ServiceUri); } if (Optional.IsDefined(OrganizationName)) { writer.WritePropertyName("organizationName"); writer.WriteObjectValue(OrganizationName); } writer.WritePropertyName("authenticationType"); writer.WriteStringValue(AuthenticationType.ToString()); if (Optional.IsDefined(Username)) { writer.WritePropertyName("username"); writer.WriteObjectValue(Username); } if (Optional.IsDefined(Password)) { writer.WritePropertyName("password"); writer.WriteObjectValue(Password); } if (Optional.IsDefined(ServicePrincipalId)) { writer.WritePropertyName("servicePrincipalId"); writer.WriteObjectValue(ServicePrincipalId); } if (Optional.IsDefined(ServicePrincipalCredentialType)) { writer.WritePropertyName("servicePrincipalCredentialType"); writer.WriteObjectValue(ServicePrincipalCredentialType); } if (Optional.IsDefined(ServicePrincipalCredential)) { writer.WritePropertyName("servicePrincipalCredential"); writer.WriteObjectValue(ServicePrincipalCredential); } if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"); writer.WriteObjectValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) { writer.WritePropertyName(item.Key); writer.WriteObjectValue(item.Value); } writer.WriteEndObject(); }