dlab_deployment.infrastructure.command_executor¶
Module Contents¶
-
class
BaseCommandExecutor[source]¶ Bases:
object
-
class
LocalCommandExecutor[source]¶ Bases:
dlab_deployment.infrastructure.command_executor.BaseCommandExecutor-
run(self, command)[source]¶ Run cli command :type command: str :param command: cli command :rtype: str :return execution result
-
sudo(self, command)[source]¶ Run cli sudo command :type command: str :param command: cli command :rtype: str :return execution result
-
-
class
ParamikoCommandExecutor(host, name, identity_file)[source]¶ Bases:
dlab_deployment.infrastructure.command_executor.BaseCommandExecutor-
run(self, command)[source]¶ Run cli command :type command: str :param command: cli command :rtype: str :return execution result
-