Class: DriveCreator

Inherits:
Object
  • Object
show all
Defined in:
lib/ubnt/usg/restore/drive_creator.rb

Instance Method Summary collapse

Constructor Details

#initialize(device) ⇒ DriveCreator

Returns a new instance of DriveCreator.



2
3
4
# File 'lib/ubnt/usg/restore/drive_creator.rb', line 2

def initialize(device)
  @device = device.start_with? '/dev' ? device : "/dev/#{device}"
end