Example #1
0
    def execute(my):
        # get the maya session
        env = AppEnvironment.get()
        app = env.get_app()

        # do some checks
        print "event: ", my.event
Example #2
0
    def execute(my):
        # get the maya session
        env = AppEnvironment.get()
        app = env.get_app()

        # do some checks
        print "event: ", my.event
Example #3
0
def main():
    #from helper_script_generate import HelperScript Generate
    os.environ['LB-TESTING'] = '1'
    from app_environment import AppEnvironment
    from app_create_folders import AppCreateFolders
    from app_initialize import AppInitialize

    from project_environment import ProjectEnvironment
    from project_create_folders import ProjectCreateFolders
    from project_configuration_initialize import ProjectConfigurationInitialize
    from project_template_initialize import ProjectTemplateInitialize
    from project_configuration_generate_api import ProjectConfigurationGenerateAPI
    from project_template_compile import ProjectTemplateCompile
    from project_template_merge import ProjectTemplateMerge
    #print('start')
    app = App()

    install_app = AppEnvironment()\
        .add(AppCreateFolders())\
        .add(AppInitialize()) # copy system app files

    setup_example_project = ProjectEnvironment(project_name='example') \
        .add(ProjectCreateFolders()) \
        .add(ProjectConfigurationInitialize())\
        .add(ProjectTemplateInitialize())\
        .add(ProjectConfigurationGenerateAPI())\
        .add(ProjectTemplateCompile())\
        .add(ProjectTemplateMerge())

    app.append(install_app)
    app.append(setup_example_project)

    app.run()
    os.environ['LB-TESTING'] = '0'
Example #4
0
 def set_tmpdir(self, tmpdir):
     from app_environment import AppEnvironment
     env = AppEnvironment.get()
     env.set_tmpdir(tmpdir)
     self.tmpdir = tmpdir
Example #5
0
    def __init__(my):
        my.env = AppEnvironment.get()
        my.app = my.env.get_app()

        my.node_data = {}
        my.load_mode = ''
Example #6
0
 def set_tmpdir(my, tmpdir):
     from app_environment import AppEnvironment
     env = AppEnvironment.get()
     env.set_tmpdir(tmpdir)
     my.tmpdir = tmpdir
Example #7
0
def main():
    from app import App

    from app_environment import AppEnvironment
    from app_create_folders import AppCreateFolders
    from app_initialize import AppInitialize

    from project_environment import ProjectEnvironment
    from project_create_folders import ProjectCreateFolders
    from project_initialize import ProjectInitialize

    from project_expand import ProjectExpand
    from project_compile import ProjectCompile

    #from project_merge import ProjectMerge
    from project_move_to_sql import ProjectMoveToSQL
    from project_cleanup import ProjectCleanup
    #from project_organize_files import ProjectOrganizeFiles

    os.environ['LB-TESTING'] = '0'
    os.environ['LB-TESTING'] = '1'

    # check env variable
    for v in os.environ:
        if v.startswith('LB_'):
            print(v, os.getenv(v))

    app = App()
    #print('env', app.appSettings.getEnvJSON())
    # load environment variables
    # create app folders,
    # copy stub templates,
    # copy stub configuration files
    # copy system files

    # Folders
    # /<working_folder>
    #     - /<code-folder>
    #     --- /<umbrella-folder>
    #     ----- /<branch-folder>
    #     --------- / <app-folder>
    #     ----------- /db-api-table
    #     ------------- /sql
    #     ----------- /web

    # application setup
    install_app = AppEnvironment()\
        .add(AppCreateFolders())\
        .add(AppInitialize())
    print('env', install_app.appSettings.getEnvJSON())
    # project setup
    setup_project = ProjectEnvironment()\
        .add( ProjectCreateFolders() )\
        .add( ProjectInitialize() )\
        .add( ProjectExpand() )\
        .add( ProjectCompile())
    #.add( ProjectMerge())\
    #.add( ProjectMoveToSQL())
    #.add( ProjectCleanup())
    #.add(Projec#tOrganizeFiles())

    # run the steps
    app.append(install_app)

    app.append(setup_project)

    app.run()
    '''
Example #8
0
 def set_tmpdir(self, tmpdir):
     from app_environment import AppEnvironment
     env = AppEnvironment.get()
     env.set_tmpdir(tmpdir)
     self.tmpdir = tmpdir
Example #9
0
    def __init__(my):
        my.env = AppEnvironment.get()
        my.app = my.env.get_app()

        my.node_data = {}
        my.load_mode = ''
Example #10
0
    def __init__(self):
        self.env = AppEnvironment.get()
        self.app = self.env.get_app()

        self.node_data = {}
        self.load_mode = ''
Example #11
0
    def __init__(self):
        self.env = AppEnvironment.get()
        self.app = self.env.get_app()

        self.node_data = {}
        self.load_mode = ''