403Webshell
Server IP : 34.87.99.72  /  Your IP : 216.73.217.31
Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n
System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64
User : bitnami ( 1000)
PHP Version : 7.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /opt/bitnami/nami/node_modules/provisioner/lib/cloud/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/bitnami/nami/node_modules/provisioner/lib/cloud/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const container_1 = require("./container");
const azure_1 = require("./azure");
const aws_1 = require("./aws");
const gce_1 = require("./gce");
const virtual_machine_1 = require("./virtual_machine");
const vmware_1 = require("./vmware");
const ibm_1 = require("./ibm");
const ibm_vpc_1 = require("./ibm_vpc");
const cloudMap = {
    container: container_1.ContainerCloud,
    virtualMachine: virtual_machine_1.VirtualMachineCloud,
    aws: aws_1.AwsCloud,
    amazon: aws_1.AwsCloud,
    gce: gce_1.GceCloud,
    azure: azure_1.AzureCloud,
    vmware: vmware_1.VMWareCloud,
    ibm: ibm_1.IbmCloud,
    ibmvpc: ibm_vpc_1.IbmVpcCloud
};
/**
 * Create an instance of appropriate class implementing the `Cloud` interface ;
 * this should not be called directly, but only once by the `Provisioner` object
 */
function createCloud(options) {
    if (cloudMap[options.cloudName]) {
        return new cloudMap[options.cloudName](options);
    }
    else {
        options.logger.warn("No cloud or unknown cloud specified -", "falling back to container-based cloud logic");
        return new container_1.ContainerCloud(options);
    }
}
exports.createCloud = createCloud;
/**
 * Get default name of the platform for a cloud ; this allows reasonable fallback
 * when only --cloud-name option was specified ; default platform name cannot be
 * passed from Cloud object as the Cloud object depends on Platform object
 */
function getDefaultPlatformName(cloudName) {
    if (cloudName === "vmware" || cloudName === "ibm" || cloudName === "ibmvpc") {
        return "centos-7-x64";
    }
    else {
        return "debian-10-amd64";
    }
}
exports.getDefaultPlatformName = getDefaultPlatformName;

Youez - 2016 - github.com/yon3zu
LinuXploit