This file contains hidden or 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
| module Starfish | |
| module AwsS3 | |
| # S3Archive initializes and provides archival-oriented access to an S3 bucket. | |
| class S3Archive | |
| def initialize | |
| @config ||= YAML.load_file("#{File.expand_path('~') + '/.ec2' + '/aws-secret.yml'}") | |
| AWS::S3::Base.establish_connection!( | |
| :access_key_id => @config['aws']['access_key'], |