sous-chefs / ark

Development repository for the ark cookbook
https://supermarket.chef.io/cookbooks/ark
Apache License 2.0
99 stars 181 forks source link

Dump-support for .gz, bz2 and .xz files #91

Open rmoriz opened 9 years ago

rmoriz commented 9 years ago

It seems that ark is not able to simply download & extract .gz files (simply gzipped files, no tar.gz archives). Same for .bz2 and .xz

failing example:

ark 'GeoIP' do
  url 'http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz'
  path '/tmp/GeoIP.dat'
  action :dump
end
burtlo commented 9 years ago

You're very right. There is assumption in the tool that it is looking for tar, tar.gz, tgz, tar.bz2, tbz, tar.xz and txz.

https://github.com/burtlo/ark/blob/master/libraries/tar_command_builder.rb#L32-L37

So @rmoriz what you are proposing is Ark being able to support:

devnore commented 8 years ago

I just bumped into this problem myself (with the exact same file) is there any plan on adding support for none archived compressed files?

dwmarshall commented 8 years ago

I've always inferred that ark referred to archive files, so this capability would be some scope creep. That's not necessarily a bad thing, but perhaps it would be better to install compressed files with a separate cookbook.