Simple wrapper around single-bucket S3 storage.
Add this line to your application's Gemfile:
gem 'haz_bucket'
And then execute:
$ bundle
Or install it yourself as:
$ gem install haz_bucket
s3 = HazBucket.of("https://AWS_ACCESS_KEY:AWS_SECRET_ACCESS_KEY@s3.amazonaws.com/BUCKET_NAME")
s3.include?("key") # => false
s3["key"] = "value"
s3["key"] # => "value"
s3.include?("key") # => true
s3.delete("key")
s3.include?("key") # => false
s3.url_for("key") # => authenticated URL to object
- select region based on hostname
- Fork it ( https://github.com/JonathonMA/has_bucket/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 a new Pull Request