https://github.com/boltops-tools/zip_folder
Zip folder
https://github.com/boltops-tools/zip_folder
Last synced: about 1 year ago
JSON representation
Zip folder
- Host: GitHub
- URL: https://github.com/boltops-tools/zip_folder
- Owner: boltops-tools
- License: apache-2.0
- Created: 2021-02-06T03:15:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-06T04:33:07.000Z (over 5 years ago)
- Last Synced: 2024-05-01T11:29:05.854Z (about 2 years ago)
- Language: Ruby
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ZipFolder
[](https://www.boltops.com)
Zip folder up. Just took this [example](https://github.com/rubyzip/rubyzip/blob/master/samples/example_recursive.rb) and packaged it as a gem.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'zip_folder'
```
## Usage
```ruby
ZipFolder.zip(input_dir, output_file)
ZipFolder.zip("/path/to/folder", "/path/to/file.zip")
```