Sha256: 6e9dbd0d9a6f61d02d63bd920bd3655bf1ede48fcd7ab826a4bfb3da3d16bdf2

Contents?: true

Size: 812 Bytes

Versions: 5

Compression:

Stored size: 812 Bytes

Contents

# Rhcf::Utils

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'rhcf-utils'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install rhcf-utils (not yet)

## Usage
### Rhcf::Utils::DownloadCache

```ruby
require 'rhcf/utils/download_cache'
cache =  Rhcf::Utils::DownloadCache.new('a_cache_id', ttl=30)
cache.get("http://example.com/a_image.png") # -> "/tmp/.../a_image.png"
```
If you try to download in less then 30 seconds, you will hit the cache

## Contributing

1. Fork it ( http://github.com/romeuhcf/rhcf-utils/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rhcf-utils-0.0.5 README.md
rhcf-utils-0.0.4 README.md
rhcf-utils-0.0.3 README.md
rhcf-utils-0.0.2 README.md
rhcf-utils-0.0.1 README.md