Skip to content

Commit

Permalink
#27 Can now load modules with custom permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrudin committed Aug 17, 2015
1 parent 987c57f commit 998b9c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,14 +303,17 @@ class MarkLogicPlugin implements Plugin<Project> {
DeployContentDatabasesCommand dcdc = new DeployContentDatabasesCommand()
if (project.hasProperty("mlContentForestsPerHost")) {
int num = Integer.parseInt(project.property("mlContentForestsPerHost"))
logger.info("Setting content forests per host to: " + num)
dcdc.setForestsPerHost(num)
}
commands.add(dcdc)

// Modules
LoadModulesCommand lmc = new LoadModulesCommand()
if (project.hasProperty("mlModulePermissions")) {
lmc.setDefaultAssetRolesAndCapabilities(project.property("mlModulePermissions"))
String perms = project.property("mlModulePermissions")
logger.info("Setting module permissions to: " + perms)
lmc.setDefaultAssetRolesAndCapabilities(perms)
}
commands.add(lmc)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ class LoadModulesTask extends MarkLogicTask {
}
}

new LoadModulesCommand().execute(getCommandContext())
command.execute(getCommandContext())
}
}

0 comments on commit 998b9c4

Please sign in to comment.