Method: CachedDeploy#run_with_result
- Defined in:
- lib/chef-deploy/cached_deploy.rb
#run_with_result(cmd) ⇒ Object
155 156 157 158 159 |
# File 'lib/chef-deploy/cached_deploy.rb', line 155 def run_with_result(cmd) res = `#{cmd} 2>&1` raise(ChefDeployFailure, res) unless $? == 0 res end |