#NEWLINE# def __init__( self , opts ) : #NEWLINE# #INDENT# self . opts = opts #NEWLINE# self . raet_port = 4550 #NEWLINE# if opts [ 'root_dir' ] : #NEWLINE# #INDENT# tmpdir = os . path . join ( opts [ 'root_dir' ] , 'tmp' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# tmpdir = opts [ 'root_dir' ] #NEWLINE# #UNINDENT# self . swarm_root = tempfile . mkdtemp ( prefix = 'mswarm-root' , suffix = '.d' , dir = tmpdir ) #NEWLINE# if ( opts . opts [ 'transport' ] == 'zeromq' ) : #NEWLINE# #INDENT# self . pki = self . _pki_dir ( ) #NEWLINE# #UNINDENT# self . zfill = len ( str ( self . opts [ 'minions' ] ) ) #NEWLINE# self . confs = set ( )