modi-cli
Version:
Console application for provisioning, displaying or destroying virtual machines in MODI
78 lines (45 loc) • 3.65 kB
JavaScript
Help = function() {
this.HelpCommands = function(inputOperationName) {
var helpCommands =
' blueprints Lists all possible blueprints that can be used for provisioning.\n\n' +
' provision Provisions a new machine.\n\n' +
' status Displays the status of a machine.\n\n' +
' destroy Destroy a virtual machine.\n\n' +
' properties Display the properties of a virtual machine.\n\n' +
' version Display the modi-cli application version.\n\n' +
' --help Display this help screen.\n';
console.log(helpCommands);
}
this.ProvisionHelp = function() {
var provisionHelp =
' -n, --machineName Required. The name of the machine to provision.\n\n' +
' -d, --description A description of the machine to provision,\n\n' +
' -b, --blueprint Required.The name of the MODI blueprint to be used for provisioning.\n\n' +
' --loc Required.The datacenter location\n\n' +
' - l, --lease-days (Default: 1) The number of days to lease the provisioned machine.\n\n' +
' -c, --num-cpu (Default: 1) The number of CPUs to provision for the machine.\n\n' +
' -g, --memory (Default: 2) The amount of memory in GB to provision for the machine.\n\n' +
' -i, --contains-ip (Default: None) The type( if any) of intellectual property to be stored on the machine. (None, Secret, Confidential,InternalUse, Public) \n\n' +
' -p, --contains-pii (Default: False) Flag indicating if machine will contain personally identifiable information(pii).\n\n' +
' -m, --monitoring (Default: True) Flag indicating if machine will be monitored.\n\n' +
' -a, --alerting (Default: False) Flag indicating if alerts will be triggered for the machine.\n\n' +
' --ppu-le Required.The pay - per - use LE information.\n\n' +
' --ppu-bu Required.The pay - per - use business unit.\n\n' +
' --ppu-dept Required.The pay - per - use department.\n\n' +
' --ppu-interco (Default: 000) The pay - per - use Inter Co.\n\n' +
' --ppu-local-account (Default: 000000) The pay - per - use local account.\n\n' +
' --ppu-project Required.The pay - per - use project.\n\n' +
' --ppu-future (Default: 000000) The pay - per - use future.\n\n' +
' --ppu-contact Required.The email address of the Team Finance contact.\n\n' +
' --ppu-contact-name Required.The name of the Team Finance contact\n\n' +
' --VirtualMachineNetwork0Name The name of the network \n\n' +
' --help Display the help screen.';
console.log(provisionHelp);
}
this.MachineNameHelp = function() {
var machineNameHelp = ' -n, --machineName Required. The name of the machine to provision.\n\n'+
' --help Display the help screen.';
console.log(machineNameHelp);
}
}
module.exports = Help;