Sha256: 7e9dbc5b9514677f5f1ac3e5f89ab99185129a22ce4ba11d148c2b04e44945d2
Contents?: true
Size: 579 Bytes
Versions: 3
Compression:
Stored size: 579 Bytes
Contents
require 'attached/storage/base' require 'attached/storage/aws' module Attached module Storage # Create a storage object given a medium and credentials. # # Usage: # # Attached::Storage.storage() # Attached::Storage.storage(:aws) # Attached::Storage.storage(:aws, credentials) def self.storage(medium = :aws, credentials = nil) case medium when :aws then return Attached::Storage::AWS.new credentials else raise "undefined storage medium '#{medium}'" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
attached-0.2.1 | lib/attached/storage.rb |
attached-0.2.0 | lib/attached/storage.rb |
attached-0.1.9 | lib/attached/storage.rb |