def bootstrap(develop, app): deps = ["base"] if develop: deps.append("develop") if app: deps.append("app") bootstrap_env(deps) click.echo(click.style("Environment up to date", fg='green'))
#! /usr/bin/python from __future__ import print_function import os import time import random import string import subprocess from _lib.bootstrapping import bootstrap_env, from_project_root, requires_env, from_env_bin from _lib.ansible import ensure_ansible bootstrap_env(["base"]) from _lib.source_package import prepare_source_package from _lib.deployment import run_gunicorn import click import requests ##### ACTUAL CODE ONLY BENEATH THIS POINT ###### @click.group() def cli(): pass cli.add_command(run_gunicorn) @cli.command('ensure-secret')
#! /usr/bin/python from __future__ import print_function import json import os import sys import time import random import string import subprocess from contextlib import contextmanager from _lib.bootstrapping import bootstrap_env, from_project_root, requires_env, from_env_bin from _lib.ansible import ensure_ansible bootstrap_env(["base"]) from _lib.params import APP_NAME from _lib.frontend import frontend, ember, build_frontend from _lib.source_package import prepare_source_package from _lib.db import db from _lib.users import user from _lib.celery import celery from _lib.slash_running import suite from _lib.utils import interact from _lib.deployment import run_gunicorn import click import requests import logbook import logbook.compat ##### ACTUAL CODE ONLY BENEATH THIS POINT ######