Module: Fog::OpenStack::Storage::Utils

Included in:
Mock, Real
Defined in:
lib/fog/openstack/storage.rb

Instance Method Summary collapse

Instance Method Details

#require_mime_typesObject



48
49
50
51
52
53
54
55
56
57
58
# File 'lib/fog/openstack/storage.rb', line 48

def require_mime_types
# Use mime/types/columnar if available, for reduced memory usage
require 'mime/types/columnar'
rescue LoadError
  begin
    require 'mime/types'
  rescue LoadError
    Fog::Logger.warning("'mime-types' missing, please install and try again.")
    exit(1)
  end
end