module RightPublish::S3Storage
Constants
- STORAGE_KEY
- STORAGE_OPTIONS
Public Class Methods
get_directories()
click to toggle source
# File lib/right_publish/stores/s3.rb, line 18 def self.get_directories() Profile.log("Connecting to S3.", :debug) conn = Fog::Storage.new( :provider => "AWS", :aws_access_key_id => Profile.config[:remote_storage][:access_id], :aws_secret_access_key => Profile.config[:remote_storage][:access_key], :region => Profile.config[:remote_storage][:region] ) Profile.log("Attaching to bucket: [#{Profile.config[:remote_storage][:remote_path]}].", :debug) aws_bucket = conn.directories.get(Profile.config[:remote_storage][:remote_path]) aws_bucket.extend(S3Storage) aws_bucket end
Public Instance Methods
compute_md5(file)
click to toggle source
# File lib/right_publish/stores/s3.rb, line 14 def compute_md5(file) file.etag end