diff options
author | Cody Hiar <codyfh@gmail.com> | 2018-06-11 11:45:29 -0600 |
---|---|---|
committer | Cody Hiar <codyfh@gmail.com> | 2018-06-11 11:45:29 -0600 |
commit | 98105e44edcdd3e0282c253fbb7b5eeab292559b (patch) | |
tree | 6030e8eef09b55395118921b003e2512583a7f90 /snippets/python/fabfile.py | |
parent | 2d90ed79923281b095f2dfb27d2b400cb1eb7415 (diff) |
Removing Snippets
Diffstat (limited to 'snippets/python/fabfile.py')
-rw-r--r-- | snippets/python/fabfile.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/snippets/python/fabfile.py b/snippets/python/fabfile.py deleted file mode 100644 index c519167..0000000 --- a/snippets/python/fabfile.py +++ /dev/null @@ -1,33 +0,0 @@ -"""Fabfile for automating some mundane tasks.""" -from fabric.api import cd, env, prefix, run - -# Use local SSH config -env.use_ssh_config = True - - -def prod(): - """Production host.""" - env.hosts = ['myserver'] - env.virtual_env = 'projname' - env.forward_agent = True - - -def prod_old(): - """Old way of defining.""" - env.user = 'cody' - env.hosts = ['123.123.123.123:1234'] - env.virtual_env = 'projname' - env.forward_agent = True - - -def deploy_virstualenv(): - """Deploy through virtualenv.""" - with prefix('workon {}'.format(env.virtual_env)): - run('deploy') - - -def deploy_git_folder(): - """Deploy the application.""" - with cd('www'): - run('git fetch origin master') - run('git reset --hard origin/master') |