This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brandon$ bundle | |
Fetching source index for http://rubygems.org/ | |
Using rake (0.9.2.2) | |
Using log4r (1.1.9) | |
Using XMLCanonicalizer (1.0.1) | |
Using multi_json (1.0.3) | |
Using activesupport (3.1.1) | |
Using builder (3.0.0) | |
Using i18n (0.6.0) | |
Using activemodel (3.1.1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aws/s3' | |
require 'digest/md5' | |
require 'mime/types' | |
## These are some constants to keep track of my S3 credentials and | |
## bucket name. Nothing fancy here. | |
AWS_ACCESS_KEY_ID = ENV['S3_KEY'] | |
AWS_SECRET_ACCESS_KEY = ENV['S3_SECRET'] | |
AWS_BUCKET = ENV['S3_BUCKET'] |