Module: BuildpackSupport::Component::VersionedDownloads
- Included in:
- VersionedDependencyComponent
- Defined in:
- lib/buildpack_support/component/versioned_downloads.rb
Overview
A mixin that provides methods for downloading, caching, and unpacking files where a version and uri are available
Instance Method Summary collapse
-
#download_tar(target_directory = @droplet.sandbox, name = @component_name) ⇒ Void
Downloads a given TAR file and expands it.
-
#download_zip(strip_top_level = true, target_directory = @droplet.sandbox, name = @component_name) ⇒ Void
Downloads a given ZIP file and expands it.
Methods included from Downloads
Methods included from WithTiming
Methods included from Shell
Instance Method Details
#download_tar(target_directory = @droplet.sandbox, name = @component_name) ⇒ Void
Downloads a given TAR file and expands it.
40 41 42 |
# File 'lib/buildpack_support/component/versioned_downloads.rb', line 40 def download_tar(target_directory = @droplet.sandbox, name = @component_name) super_download_tar @version, @uri, target_directory, name end |
#download_zip(strip_top_level = true, target_directory = @droplet.sandbox, name = @component_name) ⇒ Void
Downloads a given ZIP file and expands it.
50 51 52 |
# File 'lib/buildpack_support/component/versioned_downloads.rb', line 50 def download_zip(strip_top_level = true, target_directory = @droplet.sandbox, name = @component_name) super_download_zip @version, @uri, strip_top_level, target_directory, name end |