@@ -0,0 +1,810 @@
+#!/usr/bin/env python%0Aimport os, sys%0Asys.path.append(os.path.join(os.path.dirname(__file__), os.pardir))%0Asys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, %22core%22))%0A%0Aimport time%0A%0Aos.environ.setdefault(%22DJANGO_SETTINGS_MODULE%22, %22cmudbac.settings%22)%0Aimport django%0Adjango.setup()%0Afrom django.db.models import Q%0A%0Afrom library.models import *%0Aimport utils%0A%0Adef main():%0A    if len(sys.argv) != 3:%0A        return%0A    deploy_id = int(sys.argv%5B1%5D)%0A    repo_name = sys.argv%5B2%5D%0A    database = Database.objects.get(name='MySQL')%0A%0A    repo = Repository.objects.get(name = repo_name)%0A    print 'Attempting to deploy %7B%7D using %7B%7D ...'.format(repo, repo.project_type.deployer_class)%0A    try:%0A        utils.vagrant_deploy(repo, deploy_id, database)%0A    except:%0A        pass%0A%0Aif __name__ == '__main__':%0A    main()%0A

add deploy_repo script