Class: DriveCreator
- Inherits:
-
Object
- Object
- DriveCreator
- Defined in:
- lib/ubnt/usg/restore/drive_creator.rb
Instance Method Summary collapse
-
#initialize(device) ⇒ DriveCreator
constructor
A new instance of DriveCreator.
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 |