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



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

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