コード例 #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())
コード例 #2
0
ファイル: tasks.py プロジェクト: siq-legacy/docket
    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)
コード例 #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)
コード例 #4
0
ファイル: tasks.py プロジェクト: siq-legacy/docket
 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())