Sha256: a556a1a49b64cfa16706e37dc68290850d797a5fc827a6997af11a8f29f2c272
Contents?: true
Size: 469 Bytes
Versions: 1
Compression:
Stored size: 469 Bytes
Contents
module Ramdo module Ramdisk class Instance NAME_PATTERN = /^ramdo_disk_([a-z0-9]+)$/ def self.generate_name "ramdo_disk_#{SecureRandom.hex(4)}" end attr_accessor :device, :path, :size def initialize(wrapper, info = {}) @wrapper = wrapper @device = info[:device] @path = info[:path] @size = info[:size] end def destroy! @wrapper.destroy self end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ramdo-0.2.1 | lib/ramdo/ramdisk/instance.rb |