Skip to content

Commit

Permalink
Merge pull request #641 from marklogic-community/feature/151-host-cer…
Browse files Browse the repository at this point in the history
…tificates

DEVEXP-151: Added task for deploying host certificate templates
  • Loading branch information
rjrudin authored Dec 21, 2022
2 parents 0874c6d + 1e90b75 commit d30603b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ class MarkLogicPlugin implements Plugin<Project> {
project.task("mlDeployCertificateAuthorities", type: DeployCertificateAuthoritiesTask, group: securityGroup, description: "Deploy each certificate authority, updating it if it exists, in the configuration directory")
project.task("mlDeployCertificateTemplates", type: DeployCertificateTemplatesTask, group: securityGroup, description: "Deploy each certificate template, updating it if it exists, in the configuration directory")
project.task("mlDeployExternalSecurity", type: DeployExternalSecurityTask, group: securityGroup, description: "Deploy external security configurations, updating each if it exists, in the configuration directory")
project.task("mlDeployHostCertificateTemplates", type: DeployHostCertificateTemplatesTask, group: securityGroup, description: "Deploy host certificate templates, updating each if it exists, in the configuration directory")
project.task("mlDeploySecureCredentials", type: DeploySecureCredentialsTask, group: securityGroup, description: "Deploy secure credentials configurations, updating each if it exists, in the configuration directory")
project.task("mlDeployPrivileges", type: DeployPrivilegesTask, group: securityGroup, description: "Deploy each privilege, updating it if it exists, in the configuration directory")
project.task("mlDeployProtectedCollections", type: DeployProtectedCollectionsTask, group: securityGroup, description: "Deploy each protected collection, updating it if it exists, in the configuration directory")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.marklogic.gradle.task.security

import com.marklogic.gradle.task.MarkLogicTask
import org.gradle.api.tasks.TaskAction

class DeployHostCertificateTemplatesTask extends MarkLogicTask {

@TaskAction
void deployHostCertificateTemplates() {
invokeDeployerCommandWithClassName("InsertCertificateHostsTemplateCommand")
}

}

0 comments on commit d30603b

Please sign in to comment.