コード例 #1
0
ファイル: ssh.py プロジェクト: trubachoff/python-deployer
 def _create_connect_progress_bar(self, host):
     from deployer.console import ProgressBarSteps
     console = Console(host.pty)
     return console.progress_bar_with_steps('Connecting %s (%s)' % (host.address, host.slug),
             steps=ProgressBarSteps({
                 1: "Resolving DNS",
                 2: "Creating socket",
                 3: "Creating transport",
                 4: "Exchanging keys",
                 5: "Authenticating" }),
             format_str="%(message)s: %(counter)s/%(expected)s %(status)s")