puppetlabs/rspec-system — pull request #84 by jlyheden (2013-12-01 10:33:19+00:00)
Title: Option to use sudo in cases where remote root access is prohibited

Adds an environment variable checker for RS_USE_SUDO which if is set yes|true will wrap all SSH commands sent to shell() with sudo, and rcp() to copy to stage dir which then is manually sudo copied to proper location.