How to use the honcho.environ.parse function in honcho

To help you get started, we’ve selected a few honcho 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 idrdex / star-django / View on Github external
def install_crontab():
    print(green('Installing new crontab...'))
    app_env = honcho.environ.parse(run('grep ADMIN= .env'))
    name, email = app_env['ADMIN'].split(':')
    run('sed s/{EMAIL}/%s/ stuff/crontab | crontab -' % email)