1234567891011121314151617181920212223242526272829 |
- from setux.core.action import Runner, Actions
- class Moduler(Runner):
- '''Deploy a Module'''
- @property
- def label(self):
- return self.module
- def deploy(self):
- return self.target.deploy(self.module)
- class Modules(Actions):
- '''Deploy Modules'''
- @property
- def label(self):
- return f'Modules {self.name}'
- @property
- def actions(self):
- return [
- Moduler(self.target, module=module)
- for module in self.modules
- ]
|