|
|
@ -16,6 +16,9 @@ import mitogen.service
|
|
|
|
import mitogen.ssh
|
|
|
|
import mitogen.ssh
|
|
|
|
import mitogen.sudo
|
|
|
|
import mitogen.sudo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import ansible_mitogen.runner
|
|
|
|
|
|
|
|
import ansible_mitogen.target
|
|
|
|
|
|
|
|
|
|
|
|
router = mitogen.master.Router()
|
|
|
|
router = mitogen.master.Router()
|
|
|
|
context = mitogen.parent.Context(router, 0)
|
|
|
|
context = mitogen.parent.Context(router, 0)
|
|
|
|
stream = mitogen.ssh.Stream(router, 0, max_message_size=0, hostname='foo')
|
|
|
|
stream = mitogen.ssh.Stream(router, 0, max_message_size=0, hostname='foo')
|
|
|
@ -42,6 +45,9 @@ print(
|
|
|
|
|
|
|
|
|
|
|
|
for mod in (
|
|
|
|
for mod in (
|
|
|
|
mitogen.parent,
|
|
|
|
mitogen.parent,
|
|
|
|
|
|
|
|
mitogen.fork,
|
|
|
|
|
|
|
|
ansible_mitogen.target,
|
|
|
|
|
|
|
|
ansible_mitogen.runner,
|
|
|
|
mitogen.ssh,
|
|
|
|
mitogen.ssh,
|
|
|
|
mitogen.sudo,
|
|
|
|
mitogen.sudo,
|
|
|
|
mitogen.select,
|
|
|
|
mitogen.select,
|
|
|
@ -56,7 +62,7 @@ for mod in (
|
|
|
|
compressed = zlib.compress(minimized, 9)
|
|
|
|
compressed = zlib.compress(minimized, 9)
|
|
|
|
compressed_size = len(compressed)
|
|
|
|
compressed_size = len(compressed)
|
|
|
|
print(
|
|
|
|
print(
|
|
|
|
'%-15s'
|
|
|
|
'%-25s'
|
|
|
|
' '
|
|
|
|
' '
|
|
|
|
'%5i %4.1fKiB'
|
|
|
|
'%5i %4.1fKiB'
|
|
|
|
' '
|
|
|
|
' '
|
|
|
|