lib/liberty_buildpack/framework/dynamic_pulse_agent.rb
# Downloads ZIP file from specified url
Downloads ZIP file from specified url
Downloads ZIP file from specified url
def download_and_unzip(base_url, system_id, filename, save_to_dir)
      download_url = File.join(base_url, system_id, filename)
      LibertyBuildpack::Util.download_zip('3.+', download_url, 'DynamicPULSE Agent', save_to_dir)
    rescue => e
      raise "[DynamicPULSE] Can't download #{filename} from #{download_url}. Please check dynamicpulse-remote.xml. #{e.message}"
    end
def download_and_unzip ( base_url , system_id , filename , save_to_dir ) download_url = File . join ( base_url , system_id , filename ) LibertyBuildpack :: Util . download_zip ( '3.+' , download_url , 'DynamicPULSE Agent' , save_to_dir ) rescue => e raise "[DynamicPULSE] Can't download #{filename} from #{download_url}. Please check dynamicpulse-remote.xml. #{e.message}" end
Downloads ZIP file from specified url
Downloads ZIP file from specified url
base_url
system_id
filename
save_to_dir