Ejemplo n.º 1
0
class RemoteExecution(action.Action):
    def __init__(self, config_migrate, host):
        self.config_migrate = config_migrate
        self.host = host
        self.remote_exec_obj = SshUtil(self.host, self.config_migrate)
        super(RemoteExecution, self).__init__({})

    def run(self, command, **kwargs):
        self.remote_exec_obj.execute(command)
        return {}
Ejemplo n.º 2
0
class RemoteExecution(action.Action):

    def __init__(self, config_migrate, host, command):
        self.config_migrate = config_migrate
        self.host = host
        self.command = command
        self.remote_exec_obj = SshUtil(self.host, self.config_migrate)
        super(RemoteExecution, self).__init__()

    def run(self, **kwargs):
        self.remote_exec_obj.execute(self.command)
        return {}
Ejemplo n.º 3
0
class RemoteExecution(action.Action):

    def __init__(self, cloud, host=None, int_host=None, config_migrate=None):
        self.cloud = cloud
        self.host = host
        self.int_host = int_host
        self.config_migrate = config_migrate
        self.remote_exec_obj = SshUtil(self.cloud, self.config_migrate, self.host)
        super(RemoteExecution, self).__init__({})

    def run(self, command, **kwargs):
        self.remote_exec_obj.execute(command, self.int_host)
        return {}
Ejemplo n.º 4
0
class RemoteExecution(action.Action):
    def __init__(self, cloud, host=None, int_host=None, config_migrate=None):
        self.cloud = cloud
        self.host = host
        self.int_host = int_host
        self.config_migrate = config_migrate
        self.remote_exec_obj = SshUtil(self.cloud, self.config_migrate,
                                       self.host)
        super(RemoteExecution, self).__init__({})

    def run(self, command, **kwargs):
        self.remote_exec_obj.execute(command, self.int_host)
        return {}