Beispiel #1
0
    def create_with(deployment_host_config):
        host_controller = RemoteHostController()

        return LinuxHost(DeploymentUserVerifier(AkvoPermissions(host_controller)),
                         PythonInstaller.create_with(host_controller),
                         UbuntuPackageInspector(host_controller),
                         LinuxPackageVerifier.create_with(host_controller),
                         SystemPythonPackageInstaller.create_with(deployment_host_config, host_controller),
                         host_controller.feedback)
    def test_can_create_systempythonpackageinstaller_instance(self):
        """fab.tests.environment.python.system_package_installer_test  Can create SystemPythonPackageInstaller instance"""

        self.mox.ReplayAll()

        package_installer = SystemPythonPackageInstaller.create_with(self.deployment_host_config, self.mock_host_controller)

        self.assertIsInstance(package_installer, SystemPythonPackageInstaller)
        self.assertIsInstance(package_installer.feedback, ExecutionFeedback)
    def test_can_create_systempythonpackageinstaller_instance(self):
        """fab.tests.environment.python.system_package_installer_test  Can create SystemPythonPackageInstaller instance"""

        self.mox.ReplayAll()

        package_installer = SystemPythonPackageInstaller.create_with(
            self.deployment_host_config, self.mock_host_controller)

        self.assertIsInstance(package_installer, SystemPythonPackageInstaller)
        self.assertIsInstance(package_installer.feedback, ExecutionFeedback)
Beispiel #4
0
    def create_with(deployment_host_config):
        host_controller = RemoteHostController()

        return LinuxHost(
            DeploymentUserVerifier(AkvoPermissions(host_controller)),
            PythonInstaller.create_with(host_controller),
            UbuntuPackageInspector(host_controller),
            LinuxPackageVerifier.create_with(host_controller),
            SystemPythonPackageInstaller.create_with(deployment_host_config,
                                                     host_controller),
            host_controller.feedback)