mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 06:54:58 +00:00
Update ovftool.js
This commit is contained in:
parent
38b03fe026
commit
daf7db76b6
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user