Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An adapter for using Amazon's S3 with DataMapper

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.markdown
README.markdown

= DM-S3-Adapter

This is (or will be) a DataMapper Adapter for use with Amazon's Simple Storage Service (S3).

What works:

  • Authenticating (most) requests
  • Saving a model
  • Getting a single model

    Example:

    DataMapper.setup(:default, :adapter => 's3' :aws_access_key => YOUR_KEY, :aws_secret_key => YOUR_SECRET_KEY, :aws_bucket => 'dm-s3-bucket')

    class Article include DataMapper::Resource

    property :id, UUID, :key => true, :default => lambda { ::UUID.random_create }
    property :title, String
    property :text,  Text
    

    end

    a = Article.new(:title => "test", :text => "test") a.save

    a = Article.get(a.id)

Something went wrong with that request. Please try again.