Sha256: 6afcbb99d4b6ead0132c0eb858d776776a41330261ac346c34d04becb9c21095

Contents?: true

Size: 290 Bytes

Versions: 5

Compression:

Stored size: 290 Bytes

Contents

module Storage
  module Strategies
    autoload :S3,           "storage/strategies/s3"
    autoload :FileSystem,   "storage/strategies/file_system"

    STRATEGIES = {}

    # Register a new strategy.
    def self.register(name, klass)
      STRATEGIES[name] = klass.to_s
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
storage-0.1.5 lib/storage/strategies.rb
storage-0.1.3 lib/storage/strategies.rb
storage-0.1.2 lib/storage/strategies.rb
storage-0.1.1 lib/storage/strategies.rb
storage-0.1.0 lib/storage/strategies.rb