cwctl.py
branchstable
changeset 3622 f4317edf4058
parent 3619 af81a4f7053e
child 3629 559cad62c786
child 3638 648d6dbec630
equal deleted inserted replaced
3621:1ec4452aa36f 3622:f4317edf4058
    68     actionverb = None
    68     actionverb = None
    69 
    69 
    70     def ordered_instances(self):
    70     def ordered_instances(self):
    71         """return instances in the order in which they should be started,
    71         """return instances in the order in which they should be started,
    72         considering $REGISTRY_DIR/startorder file if it exists (useful when
    72         considering $REGISTRY_DIR/startorder file if it exists (useful when
    73         some instances depends on another as external source
    73         some instances depends on another as external source).
       
    74 
       
    75         Instance used by another one should appears first in the file (one
       
    76         instance per line)
    74         """
    77         """
    75         regdir = cwcfg.registry_dir()
    78         regdir = cwcfg.registry_dir()
    76         _allinstances = list_instances(regdir)
    79         _allinstances = list_instances(regdir)
    77         if isfile(join(regdir, 'startorder')):
    80         if isfile(join(regdir, 'startorder')):
    78             allinstances = []
    81             allinstances = []