Class: GemFast::CurlPostDownloadStrategy

Inherits:
CurlDownloadStrategy show all
Defined in:
lib/gem-fast/remote_fetcher.rb

Overview

Download via an HTTP POST. Query parameters on the URL are converted into POST parameters

Instance Attribute Summary

Attributes inherited from CurlDownloadStrategy

#tarball_path

Instance Method Summary collapse

Methods inherited from CurlDownloadStrategy

#cached_location, #fetch, #initialize

Methods inherited from AbstractDownloadStrategy

#expand_safe_system_args, #initialize, #quiet_safe_system

Methods included from Util

#curl, #not_install_curl, #safe_system, #system

Constructor Details

This class inherits a constructor from GemFast::CurlDownloadStrategy

Instance Method Details

#_fetchObject



150
151
152
153
# File 'lib/gem-fast/remote_fetcher.rb', line 150

def _fetch
  base_url,data = @url.split('?')
  curl base_url, '-d', data, '-o', @tarball_path
end