コード例 #1
0
    def do_quit(self, arg):
        self.trigger_quit()
        logger.info('Waiting for thread termination')

        time.sleep(1)
        logger.info('Quitting')
        return Cmd.do_quit(self, arg)
コード例 #2
0
    def do_quit(self, arg):
        self.running = False
        self.stop_event.set()
        logger.info('Waiting for thread termination')

        Core.write_configuration(self.config)

        time.sleep(1)
        logger.info('Quitting')
        return Cmd.do_quit(self, arg)
コード例 #3
0
ファイル: rehash_ui.py プロジェクト: elsonidoq/fito
 def do_ignore(self, arg=None):
     print "Ignoring {}".format(self.spec)
     RehashUI.ignored_specs.add(self.spec)
     return Cmd.do_quit(self, arg)
コード例 #4
0
ファイル: rehash_ui.py プロジェクト: elsonidoq/fito
 def do_end(self, arg=None):
     print "Quitting..."
     return Cmd.do_quit(self, arg)
コード例 #5
0
ファイル: rehash_ui.py プロジェクト: elsonidoq/fito
 def do_quit(self, arg=None):
     print "Quitting..."
     RehashUI.user_quit = True
     return Cmd.do_quit(self, arg)
コード例 #6
0
 def do_quit(self, arg):
     self.my_session.terminate()
     Cmd.do_quit(self, arg)
コード例 #7
0
ファイル: cmd2_interface.py プロジェクト: ZionOps/poortego
 def do_quit(self, arg):
     self.my_session.terminate()
     Cmd.do_quit(self, arg)