Update ovftool.js

This commit is contained in:
Namhyeon Go 2025-01-15 15:38:25 +09:00 committed by GitHub
parent 38b03fe026
commit daf7db76b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,13 +2,16 @@
// Namhyeon Go <abuse@catswords.net> // Namhyeon Go <abuse@catswords.net>
// https://github.com/gnh1201/welsonjs // https://github.com/gnh1201/welsonjs
// //
// Download OVFTool (Open Virtualization Format (OVF) Tool):
// https://developer.broadcom.com/tools/open-virtualization-format-ovf-tool/latest
//
var SHELL = require("lib/shell"); var SHELL = require("lib/shell");
var CRED = require("lib/credentials"); var CRED = require("lib/credentials");
function OVFObject() { function OVFObject() {
this.binPath = "bin\\x64\\VMware-ovftool-4.6.3-24031167-win.x86_64\\ovftool\\ovftool.exe"; this.binPath = "bin\\x64\\VMware-ovftool-4.6.3-24031167-win.x86_64\\ovftool\\ovftool.exe";
this.hostname = ""; this.hostname = "";
this.port = 443; this.port = 443;
this.resourceName = ""; this.resourceName = "";
this.setBinPath = function(binPath) { this.setBinPath = function(binPath) {
@ -18,10 +21,10 @@ function OVFObject() {
this.setHostName = function(hostname) { this.setHostName = function(hostname) {
this.hostname = hostname; this.hostname = hostname;
}; };
this.setPort = function(port) { this.setPort = function(port) {
this.port = port; this.port = port;
}; };
this.setResourceName = function(resourceName) { this.setResourceName = function(resourceName) {
this.resourceName = resourceName; this.resourceName = resourceName;
@ -40,8 +43,8 @@ function OVFObject() {
connectionString, connectionString,
filename filename
]; ];
console.log("connectionString:", connectionString); console.log("Use this connection string:", connectionString);
// run the command synchronously // run the command synchronously
SHELL.show(cmd, false); SHELL.show(cmd, false);