Publish nodes

Publish nodes based on a specified list of paths

list = [
	["/path/to/node"],
	["/path/to/second/node"],
]

list.eachWithIndex { nodePath, index ->

    map = new java.util.LinkedHashMap<String, String>()
    map.put("path", nodePath)
    map.put("repository", "website")
    map.put("recursive", "false")
    cm = info.magnolia.commands.CommandsManager.getInstance()
    cm.executeCommand('default','publish',map)

    println "Published node: ${nodePath}"

}

return "pages activated"