From a694d726a1d2b910b0c3b9bda8e1fb5d8a1daad2 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 12 Jun 2011 13:29:23 -0400 Subject: [PATCH] ep.io fabfile --- fabfile.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 fabfile.py diff --git a/fabfile.py b/fabfile.py new file mode 100644 index 0000000..59e2cb7 --- /dev/null +++ b/fabfile.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +from fabric.api import * + + +CMD_TEMPLATE = '{0}' + + +def _run(cmd): + local(CMD_TEMPLATE.format(cmd)) + + +def prod(): + """Runs all command on the production instance.""" + global CMD_TEMPLATE + + CMD_TEMPLATE = 'epio run_command {0}' + + +def deploy(): + """Deploys the application""" + + prod() + local('epio upload') + migrate() +