Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/english/s3
Super simple library for uploading to, and deleting from, S3.
https://github.com/english/s3
Last synced: 5 days ago
JSON representation
Super simple library for uploading to, and deleting from, S3.
- Host: GitHub
- URL: https://github.com/english/s3
- Owner: english
- License: mit
- Created: 2014-04-12T21:51:40.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-12T21:58:52.000Z (almost 11 years ago)
- Last Synced: 2025-01-20T01:21:30.613Z (10 days ago)
- Language: Ruby
- Homepage:
- Size: 234 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# S3
Super simple library for uploading to, and deleting from, S3.
## Installation
Add this line to your application's Gemfile:
gem 's3', github: 'jamienglish/s3'
And then execute:
$ bundle
## Usage
```ruby
require "s3"S3.configure do |config|
config.access_key_id = ENV["AWS_ACCESS_KEY_ID"]
config.secret_access_key_id = ENV["AWS_SECRET_ACCESS_KEY"]
config.bucket = "mybucket"
endimage = Rack::Test::UploadedFile.new("image.jpg", "image/jpg")
url = S3::Put.call(image)S3::Delete.call('path/to/image.jpg')
```