Esempio n. 1
0
    def __init__(self):
        py_vmomi_service = pyVmomiService(SmartConnect, Disconnect)
        cloudshell_data_retriever_service = CloudshellDataRetrieverService()
        resource_connection_details_retriever = ResourceConnectionDetailsRetriever(
            cloudshell_data_retriever_service)
        network_adapter_retriever_command = NetworkAdaptersRetrieverCommand(
            py_vmomi_service, cloudshell_data_retriever_service,
            resource_connection_details_retriever)
        destroy_virtual_machine_command = DestroyVirtualMachineCommand(
            py_vmomi_service, cloudshell_data_retriever_service)

        deploy_from_template_command = DeployFromTemplateCommand(
            py_vmomi_service, cloudshell_data_retriever_service,
            resource_connection_details_retriever)

        self.commandExecuterService = CommandExecuterService(
            py_vmomi_service, network_adapter_retriever_command,
            destroy_virtual_machine_command, deploy_from_template_command)
Esempio n. 2
0
 def setUp(self):
     self.csRetrieverService = CloudshellDataRetrieverService()