Skip to content

Instantly share code, notes, and snippets.

@aezell
Created April 24, 2013 18:41
Show Gist options
  • Save aezell/5454461 to your computer and use it in GitHub Desktop.
Save aezell/5454461 to your computer and use it in GitHub Desktop.
Fabfile fun
# Usage: fab provision:type=cache_server
from fabric.api import task, run
import boto
@task
def provision(type="cache_server"):
# do some boto stuff
if type == "app_server":
# build an app server
else:
# build a cache server
run(email("Just built a %s" % type))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment