From 98105e44edcdd3e0282c253fbb7b5eeab292559b Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Mon, 11 Jun 2018 11:45:29 -0600 Subject: Removing Snippets --- snippets/python/fabfile.py | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 snippets/python/fabfile.py (limited to 'snippets/python/fabfile.py') 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') -- cgit v1.2.3