Skip to content

Instantly share code, notes, and snippets.

@hellp
Created March 18, 2015 11:53
Show Gist options
  • Save hellp/03fbdac7471e3011a53b to your computer and use it in GitHub Desktop.
Save hellp/03fbdac7471e3011a53b to your computer and use it in GitHub Desktop.
fabric: check for local availability of a command/program
with fab.settings(warn_only=True), fab.hide('warnings', 'running', 'stdout'):
has_local_redis = fab.local('which redis-cli').return_code == 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment