class SSHCmdExecutor(AbstractCmdExecutor):
    
    def __init__(self, config, cachedir, username, password):
        self.hostname=config.host
        self.username=username
        self.password=password
        self.starter=SSHStarter(hostname=self.hostname, username=self.username, password=self.password, tmp_dir=cachedir)

    def execute(self, command):
        return self.starter.start(command)
 def __init__(self, config, cachedir, username, password):
     self.hostname=config.host
     self.username=username
     self.password=password
     self.starter=SSHStarter(hostname=self.hostname, username=self.username, password=self.password, tmp_dir=cachedir)