How to use the mirage.proj.MirageEnvironment function in mirage

To help you get started, we’ve selected a few mirage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shotastage / mirage-django-lts / mirage / workspace / storage.py View on Github external
def __db_connect():
        return MirageEnvironment.search_project_root() + "/.mirage/mirage_workspace.sqlite3"
github shotastage / mirage-django-lts / mirage / confscript / conf2.py View on Github external
def load_miragefile(self):

        with MirageEnvironment(MirageEnvironmentLevel.inproject):
            pass
github shotastage / mirage-django-lts / mirage / miragefile / conf.py View on Github external
def __init__(self, file_type = None):

        with proj.MirageEnvironment(proj.MirageEnvironmentLevel.inproject):
            if file_type == "secret":
                self._data = self._load_json("Miragefile.secret")
            elif file_type == "addon":
                self._data = self._load_json("Miragefile.addon")
            elif file_type == None:
                self._data = self._load_json("Miragefile")
            else:
                mys.log("Wrong configuration type {0}.".format(file_type), withError = True)
github shotastage / mirage-django-lts / mirage / console / django_console.py View on Github external
def main(self):
        with proj.MirageEnvironment(proj.MirageEnvironmentLevel.indjango):
            mys.log("Launching Django Python Shell")
            os.system("python manage.py dbshell")