|
|
|
@ -351,6 +351,7 @@ usual into the slave process.
|
|
|
|
os.system('tar zxvf my_app.tar.gz')
|
|
|
|
os.system('tar zxvf my_app.tar.gz')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@mitogen.main()
|
|
|
|
def main(broker):
|
|
|
|
def main(broker):
|
|
|
|
if len(sys.argv) != 2:
|
|
|
|
if len(sys.argv) != 2:
|
|
|
|
print(__doc__)
|
|
|
|
print(__doc__)
|
|
|
|
@ -359,10 +360,6 @@ usual into the slave process.
|
|
|
|
context = mitogen.ssh.connect(broker, sys.argv[1])
|
|
|
|
context = mitogen.ssh.connect(broker, sys.argv[1])
|
|
|
|
context.call(install_app)
|
|
|
|
context.call(install_app)
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__' and mitogen.is_master:
|
|
|
|
|
|
|
|
import mitogen.utils
|
|
|
|
|
|
|
|
mitogen.utils.run_with_broker(main)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Event-driven IO
|
|
|
|
Event-driven IO
|
|
|
|
###############
|
|
|
|
###############
|
|
|
|
|