Skip to content

Instantly share code, notes, and snippets.

@philk
Created February 21, 2014 22:23
Show Gist options
  • Save philk/9144867 to your computer and use it in GitHub Desktop.
Save philk/9144867 to your computer and use it in GitHub Desktop.
module Shrinkwrap
class Unwrap
class << self
def download_package(url)
open(url,
:content_length_proc => lambda {
|content_length| puts content_length
},
:progress_proc => lambda {
|size| puts size
}
)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment