fh-fablib
Project description
Usage (fabfile.py):
from __future__ import unicode_literals from fabric.api import env import fh_fablib # env.box_environment contains the currently active environment. # Default values available in all environments env.box_project_name = 'app' env.box_domain = 'example.ch' env.box_database_local = 'example_ch' env.box_restart = ['sctl restart %(box_domain)s:*'] env.forward_agent = True # Remove this for multi-env support env.box_hardwired_environment = 'production' # Environment specific values. env.box_environments = { 'production': { 'shortcut': 'p', 'domain': 'example.ch', 'branch': 'master', 'servers': [ 'user@example.com', ], 'remote': 'production', # git remote alias for the server. 'repository': 'example.ch', 'database': 'example_ch', }, 'staging': { 'shortcut': 's', 'domain': 'stage.example.ch', 'branch': 'develop', 'servers': [ 'user@example.com', ], 'remote': 'staging', 'repository': 'example.ch', 'database': 'stage_example_ch', }, } fh_fablib.init(globals(), min_version=(0, 1, 7))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fh-fablib-0.4.3.tar.gz
(12.1 kB
view hashes)
Built Distribution
Close
Hashes for fh_fablib-0.4.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43a76a0d1fce92248928fa53cfd8b6f62658129a248e53cb56004bc2bb2e641e |
|
MD5 | d51a46f024b4d45ee90bb587d03e3e04 |
|
BLAKE2b-256 | 169fc4e34b09dfc51e8f9d4114879a635824e452254f9be503f447b4ef1d9e6e |