Module: Mir::Disk

Defined in:
lib/mir/disk.rb,
lib/mir/disk/amazon.rb

Defined Under Namespace

Classes: Amazon, IncompleteTransmission, MultiPartFile, RemoteFileNotFound

Class Method Summary collapse

Class Method Details

.fetch(settings = {}) ⇒ Mir::Disk

Returns a disk object from the settings specified

Returns:



10
11
12
13
14
15
16
17
# File 'lib/mir/disk.rb', line 10

def self.fetch(settings = {})
  case settings[:type]
  when "s3"
    Mir::Disk::Amazon.new(settings)
  else
    Mir.logger.error "Could not find specified cloud provider"
  end
end