This repository has been archived on 2020-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
magic-app/magic_app/tasks.py

15 lines
410 B
Python
Raw Normal View History

2020-07-04 11:12:31 +00:00
"""Celery tasks module."""
from magic_app.app import celery
from magic_app.forms import form_to_env
from magic_app.templates import clone_app_template, create_data_dir
2020-07-04 11:12:31 +00:00
@celery.task
def install_app(app_name: str, form_data) -> None:
"""Install an application."""
create_data_dir()
clone_app_template(app_name)
# Note(decentral1se): this is where I left off...
env = form_to_env() # noqa