Sha256: debf46a12ab20220ae464f8a327cfb8118eb91fcfa781bbf4355d9eab0d5be2b

Contents?: true

Size: 1.42 KB

Versions: 6

Compression:

Stored size: 1.42 KB

Contents

# Mixlib::Archive

[![Build Status Master](https://travis-ci.org/chef/mixlib-archive.svg?branch=master)](https://travis-ci.org/chef/mixlib-archive) [![Gem Version](https://badge.fury.io/rb/mixlib-archive.svg)](https://badge.fury.io/rb/mixlib-archive)

A very simple gem to extract archives.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'mixlib-archive'
```

And then execute:

```shell
$ bundle
```

Or install it yourself as:

```shell
$ gem install mixlib-archive
```

## Usage

To extract an archive

```ruby
require "mixlib/archive"
tar = Mixlib::Archive.new("/path/to/tar")
tar.extract("/destination/directory")
```

To create an archive

```ruby
require "mixlib/archive"
tar = Mixlib::Archive.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.

## Contributing

Bug reports and pull requests are welcome on GitHub at <https://github.com/chef/mixlib-archive>. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Community Guidelines](https://docs.chef.io/community_guidelines.html) code of conduct.

## License

The gem is available as open source under the terms of the Apache License, v2

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mixlib-archive-0.4.8 README.md
mixlib-archive-0.4.7 README.md
mixlib-archive-0.4.6 README.md
mixlib-archive-0.4.5 README.md
mixlib-archive-0.4.4 README.md
mixlib-archive-0.4.2 README.md