Add function to run local commands pertaining to segments

While we have a way to generate ssh commands to run commands on remote
hosts, we do not have a way to run local commands pertaining to hosts. A
good example of how this could be used is if we needed to copy a file
from master to all segments

Authored-by: Kevin Yeap <kyeap@pivotal.io>
2 files changed