Sha256: c8b917e05376d347bdbc0eb8752ae9cffce250d94d7b83287ccba4a390e33077

Contents?: true

Size: 351 Bytes

Versions: 4

Compression:

Stored size: 351 Bytes

Contents

module Ramdo
  module Ramdisk
    class Factory
      def self.get
        if RUBY_PLATFORM =~ /linux/
          LinuxWrapper.new
        elsif RUBY_PLATFORM =~ /darwin/
          DarwinWrapper.new
        else
          raise OSNotSupportedException.new("Could not find Ramdisk wrapper for #{RUBY_PLATFORM}")
        end
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ramdo-0.1.5 lib/ramdo/ramdisk/factory.rb
ramdo-0.1.4 lib/ramdo/ramdisk/factory.rb
ramdo-0.1.3 lib/ramdo/ramdisk/factory.rb
ramdo-0.1.2 lib/ramdo/ramdisk/factory.rb