Created
March 18, 2015 11:53
-
-
Save hellp/03fbdac7471e3011a53b to your computer and use it in GitHub Desktop.
fabric: check for local availability of a command/program
This file contains hidden or 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
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