Sha256: d14ba930ebc9e503c2ff6daa75dc123e94e2b8cac213272eec7b4ed7fdc7b796
Contents?: true
Size: 513 Bytes
Versions: 7
Compression:
Stored size: 513 Bytes
Contents
require 'rvm/capistrano/base' rvm_with_capistrano do def run_silent_curl(command, options={}) run_without_rvm(<<-EOF.gsub(/[\s]+/, ' ')) __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
7 entries across 7 versions & 1 rubygems