Example #1
0
 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__({})
Example #2
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 {}
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 {}
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 {}
Example #5
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 {}
 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__({})
Example #7
0
 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 __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__()