Cisco UCS Director – Hello World in Cloupia script
Cloupia script is THE scripting language from Cisco UCS Director. Cloupia is a mix between Javascript and Java. The code is interpreted by Nashorn (the Javascript engine from JRE/JDK).
1 2 3 4 5 |
importPackage(java.lang); var sHelloWorld = "Hello the world !"; logger.addInfo(sHelloWorld); |
imporPackage has the same role as import from a pure Java code. import java.lang.* is in cloupia importPackage(java.lang);