README.md in mixlib-archive-0.2.0 vs README.md in mixlib-archive-0.3.0

- old
+ new

@@ -19,12 +19,21 @@ $ gem install mixlib-archive ## Usage +To extract an archive + ```ruby tar = Mixlib::Artifact.new("/path/to/tar") tar.extract("/destination/directory") +``` + +To create an archive + +```ruby +tar = Mixlib::Artifact.new("/path/to/foo.tar.gz") +tar.create(%w{ file.rb file2.rb }, gzip: true) ``` ## Development After checking out the repo, run `bundle` to install dependencies. Then, run `bundle exec rake spec` to run the tests. You can also run `bundle console` for an interactive prompt that will allow you to experiment.