Method: MongoTestServer::RamDiskStorage#create
- Defined in:
- lib/mongo_test_server/ram_disk_storage.rb
#create ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/mongo_test_server/ram_disk_storage.rb', line 18 def create @ram_disk_device ||= lambda { device = `hdiutil attach -nomount ram://1000000`.chomp `diskutil erasevolume HFS+ #{@name} #{device}` device }.call path end |