Class: Vara::Tarball
Overview
Represents a binary file that is packaged in a .pivotal product
Instance Method Summary collapse
-
#initialize(metadata, target_dir) ⇒ Tarball
constructor
A new instance of Tarball.
-
#sync_local_copy ⇒ String
Based on the metadata, downloads the binary from the metadata#url and verifies the checksum.
Methods included from Loggable
Constructor Details
#initialize(metadata, target_dir) ⇒ Tarball
Returns a new instance of Tarball.
13 14 15 16 |
# File 'lib/vara/tarball.rb', line 13 def initialize(, target_dir) @metadata = @target_dir = target_dir end |
Instance Method Details
#sync_local_copy ⇒ String
Based on the metadata, downloads the binary from the metadata#url and verifies the checksum.
21 22 23 24 25 26 |
# File 'lib/vara/tarball.rb', line 21 def sync_local_copy download validate_tarball validate_checksum path_to_binary end |