def command_unmount_all(self):
        has_failed = False
        for system_id in self.environment.get_mounted_ids():
            try:
                system = SystemModel.create_by_id(system_id, self.environment)
                controller = SystemControllerModel(system, self.environment)
                controller.unmount()
            except SftpConfigException as e:
                sys.stderr.write('Cannot unmount %s: %s\n\n' % (system_id, str(e)))
                has_failed = True
        sys.exit(0 if not has_failed else 1)
Unmounts all sftp file systems known to sftpman.
dataset/ETHPy150Open spantaleev/sftpman/sftpman/cli.py/SftpCli.command_unmount_all