def start_up(*args):
    # patch moto implementation
    apply_patches()

    # add memory profiling endpoint
    inject_stats_endpoint()

    return moto_main(*args)
def main():
    setup_logging()

    # patch moto implementation
    apply_patches()

    # start API
    sys.exit(moto_main())
예제 #3
0
def main():
    setup_logging()

    # patch moto implementation
    apply_patches()

    # add memory profiling endpoint
    inject_stats_endpoint()

    # start API
    sys.exit(moto_main())
예제 #4
0
def main():
    setup_logging()

    # patch moto implementation
    apply_patches()

    # add memory profiling endpoint
    inject_stats_endpoint()

    # make sure all API names and ports are mapped properly
    canonicalize_api_names()

    # start API
    sys.exit(moto_main())
예제 #5
0
 def thread_func(params):
     return moto_main([api, '-p', str(port), '-H', constants.BIND_HOST])
def main():
    # patch moto implementation
    apply_patches()

    # start API
    sys.exit(moto_main())