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

Version Path
rvm-capistrano-1.5.6 lib/rvm/capistrano/helpers/run_silent_curl.rb
rvm-capistrano-1.5.5 lib/rvm/capistrano/helpers/run_silent_curl.rb
rvm-capistrano-1.5.4 lib/rvm/capistrano/helpers/run_silent_curl.rb
rvm-capistrano-1.5.3 lib/rvm/capistrano/helpers/run_silent_curl.rb
rvm-capistrano-1.5.2 lib/rvm/capistrano/helpers/run_silent_curl.rb
rvm-capistrano-1.5.1 lib/rvm/capistrano/helpers/run_silent_curl.rb
rvm-capistrano-1.5.0 lib/rvm/capistrano/helpers/run_silent_curl.rb