equal
deleted
inserted
replaced
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 = [] |