Sha256: 79ba3f77e6426d4ef1769ee8465c13a6bcd41e3a0211838daf3bae0d8770c51a

Contents?: true

Size: 387 Bytes

Versions: 3

Compression:

Stored size: 387 Bytes

Contents

require 'attached/storage/aws'

module Attached
  module Storage
    
    # Create a storage object given a medium and credentials.
    #
    # Usage:
    #
    #   Attached::Storage.medium(aws)
    
    def self.storage(medium = :aws, credentials = nil)
      
      case medium
      when :aws then return Attached::Storage::AWS.new(credentials)
      end
      
    end
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
attached-0.1.7 lib/attached/storage.rb
attached-0.1.6 lib/attached/storage.rb
attached-0.1.5 lib/attached/storage.rb