Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rmoriz opened this issue Dec 5, 2014 · 3 comments
Open

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

rmoriz opened this issue Dec 5, 2014 · 3 comments

Comments

@rmoriz
Copy link

rmoriz commented Dec 5, 2014

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
Copy link

burtlo commented Mar 17, 2015

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:

  • File extension gz using the application gunzip to extract it.
  • File extension xz using the application xz -d to extract it.
  • File extension bzip2 using the application bzip2 -d to extract it.

@devnore
Copy link

devnore commented Jan 12, 2016

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants