Sha256: 355d52a0705141cb1acdcef2490c2944bb4ea15984d08b6f24f1f524740e3aee

Contents?: true

Size: 531 Bytes

Versions: 3

Compression:

Stored size: 531 Bytes

Contents

require 'fog'
require 'fog/storage'

require 'fog-external'

module Fog
  module Storage
    class External < Fog::Service

      requires :delegate

      model_path 'fog/external/models/storage'
      collection  :directories
      model       :directory
      collection  :files
      model       :file

      class Real
        def initialize(options={})
          require 'mime/types'
          @delegate = options[:delegate]
        end
        
        def remote
          @delegate
        end
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fog-external-0.0.3 lib/fog/external/storage.rb
fog-external-0.0.2 lib/fog/external/storage.rb
fog-external-0.0.1 lib/fog/external/storage.rb