Skip to content

Instantly share code, notes, and snippets.

@aubricus
Created February 14, 2013 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aubricus/4949726 to your computer and use it in GitHub Desktop.
Save aubricus/4949726 to your computer and use it in GitHub Desktop.
print message utility function for fabric tasks
from utils import print_message
@task
def foo():
print_message('foo executed', 'green')
from fabric import colors
def print_message(message, color='white'):
color = getattr(colors, color)
print(
color(message, bold=True)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment