Archive::Ar
Simple AR file functions
Installation
Add this line to your application's Gemfile:
gem 'archive-ar'
And then execute:
$ bundle
Or install it yourself as:
$ gem install archive-ar
Usage
Create an archive
$ ar.rb -r somearchive.ar file1 file2
Archive::Ar.create("somearchive.ar", ["file1", "file2"])
Extract an archive
$ ar.rb -x somearchive.ar /tmp
Archive::Ar.extract("somearchive.ar", "/tmp")
Advanced
$ ar.rb -t somearchive.ar
Archive::Ar.traverse("somearchive.ar") do |file|
puts file.name
end
Contributing
- Fork it ( http://github.com/jbussdieker/ruby-archive-ar/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request