Sha256: 1e33763b5f7d084976945f18ed80a27d6c2857a3de42a49b115a9087b30b2579
Contents?: true
Size: 522 Bytes
Versions: 1
Compression:
Stored size: 522 Bytes
Contents
require 'rvm/capistrano/base' rvm_with_capistrano do def run_silent_curl(command, options={}) run_without_rvm(<<-EOF.gsub(/[\s]+/, ' '), options) __LAST_STATUS=0; export CURL_HOME="${TMPDIR:-${HOME}}/.rvm-curl-config.$$"; mkdir ${CURL_HOME}/; { [[ -r ${HOME}/.curlrc ]] && cat ${HOME}/.curlrc; echo "silent"; echo "show-error"; } > $CURL_HOME/.curlrc; #{command} || __LAST_STATUS=$?; rm -rf $CURL_HOME; exit ${__LAST_STATUS} EOF end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rvm-capistrano-1.5.0.rc1 | lib/rvm/capistrano/helpers/run_silent_curl.rb |