Created
April 24, 2013 18:41
-
-
Save aezell/5454461 to your computer and use it in GitHub Desktop.
Fabfile fun
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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