Is there any built in task to unzip (untar) downloaded file? #9

Open
stereobooster opened this Issue Jun 26, 2012 · 3 comments

Projects

None yet

3 participants

@stereobooster

No description provided.

@grosser
Owner
grosser commented Jun 26, 2012

Unzipping tars is kind of a hairy issue, you need the specific unzipper and most of the times you have to move the unzipped content around since they are in different localtions.

I think the sexiest thing would be to do:

from 'http://foo.com/bla.tar.gz' do |files_as_hash|
  file "xxx.js", "inside_tar/xx.min.js"
end
@drewda
drewda commented Nov 11, 2013

@grosser, just wondering if this is still on your list? Or for now should I just do an exec hack?

@grosser
Owner
grosser commented Nov 12, 2013

you can give it a try, by adding something like :unzip => true and then do whatever your system supports and if someone has an issue with that they can not use it or fix it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment