/s3mpi-ruby

Simple interface wrapper to the AWS SDK for console-facing upload and fetching of Ruby objects to S3 in JSON format.

Primary LanguageRubyMIT LicenseMIT

S3 uploads of Ruby objects Build Status

Upload and download Ruby objects to S3 using a very convenient API. This is incredibly handy for passing objects around between consoles when, e.g., collaborating or debugging.

Usage

To set up an S3 interface, one can run

MPI = S3MPI::Interface.new("bucket", "path/in/bucket")
# Or a constant name of your choosing...

Then, assuming our credentials are set up correctly, we can store and read Ruby objects:

MPI.store({ some: "ruby", object: 5 }, "some_object")
MPI.read('some_object')