Example #1
0
 def run(self, runtime):
     path = self['path']
     for registration in Format.read(self['config']):
         implementation = import_object(registration['implementation'])
         constructor = StaticConstructor(implementation.config,
                                         registration['archetypes'])
         runtime.execute('mesh.javascript',
                         path=path,
                         bundle=constructor.construct())
Example #2
0
    def run(self, runtime):
        annotator = StaticAnnotator()
        for registration in Format.read(self['config']):
            candidate = self['specifications'] / registration['id'].replace(':', '_')
            if candidate.exists():
                registration['specification'] = eval(candidate.bytes())
                annotator.process(registration)

        ENTITY_API.attach(annotator.generate_mounts())
        runtime.execute('mesh.javascript', path=self['path'], bundle=ENTITY_API)
Example #3
0
    def run(self, runtime):
        annotator = StaticAnnotator()
        for registration in Format.read(self['config']):
            candidate = self['specifications'] / registration['id'].replace(
                ':', '_')
            if candidate.exists():
                registration['specification'] = eval(candidate.bytes())
                annotator.process(registration)

        ENTITY_API.attach(annotator.generate_mounts())
        runtime.execute('mesh.javascript',
                        path=self['path'],
                        bundle=ENTITY_API)
Example #4
0
 def run(self, runtime):
     path = self['path']
     for registration in Format.read(self['config']):
         implementation = import_object(registration['implementation'])
         constructor = StaticConstructor(implementation.config, registration['archetypes'])
         runtime.execute('mesh.javascript', path=path, bundle=constructor.construct())