Class: Vagrant::Util::Downloader
- Inherits:
-
Object
- Object
- Vagrant::Util::Downloader
- Defined in:
- lib/vagrant-box-s3/downloader.rb
Instance Method Summary collapse
Instance Method Details
#head ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/vagrant-box-s3/downloader.rb', line 9 def head if ::VagrantPlugins::BoxS3::Utils.is_s3_manifest(@source) , = self. .unshift("-i") << @source @logger.info("HEAD (Override): #{@source}") result = execute_curl(, ) headers, _body = result.stdout.split("\r\n\r\n", 2) headers else original_head end end |
#original_head ⇒ Object
7 |
# File 'lib/vagrant-box-s3/downloader.rb', line 7 alias_method :original_head, :head |