Is it possible to ask the fabric to perform actions conditionally? This should be pretty trivial because it is "just Python", but I'm not 100% sure how to run commands and capture their return code or output.
As an example, how would I have behavior that depends on the value of the environment variable in the host?
source share