From 11bba1afeb8d753a37d926ea00f0afd6f083ec09 Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Mon, 8 Jan 2018 12:40:16 +0000 Subject: [PATCH] hide static methods from the cli --- fabfile.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fabfile.py b/fabfile.py index 406562d3f..6ebd2549f 100644 --- a/fabfile.py +++ b/fabfile.py @@ -49,8 +49,8 @@ def pull_production_media(): @roles('staging') def deploy_staging(): - build_static() - deploy_static() + _build_static() + _deploy_static() run('git pull') run('pip install -r requirements.txt') @@ -152,7 +152,7 @@ def _post_deploy(): @runs_once -def build_static(): +def _build_static(): # Build a specific branch build_branch = 'master' current_branch = local('git rev-parse --abbrev-ref HEAD') @@ -165,6 +165,6 @@ def build_static(): @runs_once -def deploy_static(): +def _deploy_static(): # Copy the compiled static files to the server local("rsync -avz /vagrant/opentech/static_compiled %s:'../app/opentech/'" % (env['host_string'])) -- GitLab