def templates(self, component):
     templates = [
         PythonTemplate('resource_base.py', component['baseclass']['file']),
         PythonTemplate('resource.py',
                        component['userclass']['file'],
                        executable=True,
                        userfile=True),
         AutoconfTemplate('configure.ac'),
         AutomakeTemplate('base/Makefile.am'),
         AutomakeTemplate('base/Makefile.am.ide', userfile=True),
         ShellTemplate('common/reconf')
     ]
     return templates
 def templates(self, service):
     templates = [
         PythonTemplate('service.py',
                        service['userclass']['file'],
                        executable=True,
                        userfile=True),
         AutoconfTemplate('pull/configure.ac'),
         AutomakeTemplate('base/Makefile.am'),
         AutomakeTemplate('base/Makefile.am.ide', userfile=True),
         ShellTemplate('common/reconf')
     ]
     return templates
Beispiel #3
0
    def templates(self, component):
        templates = [
            PythonTemplate('pull/resource_base.py', component['baseclass']['file']),
            PythonTemplate('resource.py', component['userclass']['file'], executable=True),
            AutoconfTemplate('pull/configure.ac'),
            AutomakeTemplate('base/Makefile.am'),
            AutomakeTemplate('Makefile.am.ide'),
            ShellTemplate('common/reconf')
        ]

        # If this is a docker-borne Component, add the template generators for it.
        if component['flowgraph']['docker_image']:
            templates += [
                DockerFileTemplate('Dockerfile',
                    filename='../Dockerfile',
                    executable=False),
                ShellTemplate('build-image.sh',
                    filename='../build-image.sh',
                    executable=True)
            ]
        return templates
Beispiel #4
0
 def __init__(self, template, port):
     super(GenericPortGenerator, self).__init__(port)
     self.__template = PythonTemplate(template)
 def templates(self, component):
     templates = PullComponentGenerator.templates(self, component)
     templates.append(PythonTemplate('persona_base.py', component['personaclass']['file']))
     return templates
Beispiel #6
0
 def templates(self, project):
     return [
         PythonTemplate('test.py', 'test_' + project['basename'] + '.py')
     ]