Abstract
This class references a physical drive in the system.
Inherits from: Object ← Burn::Drive .
Included in: Burn .
Index: STATUS_ERASING STATUS_GRABBING STATUS_IDLE STATUS_READING STATUS_SPAWNING STATUS_WRITING STATUS_WRITING_LEADIN STATUS_WRITING_LEADOUT buffer_size can_read_cdr? can_read_cdrw? can_read_dvdr? can_read_dvdram? can_read_dvdrom? can_report_c2_errors? can_write_cdr? can_write_cdrw? can_write_dvdr? can_write_dvdram? can_write_simulate? cancel! disc disc_erasable? disc_status erase_disc! grab! location packet_block_types product progress raw_block_types read_speed release! sao_block_types scan set_speed status tao_block_types vendor write_speed
Class methods | |
---|---|
scan | scan |
Scans for drives. # Example: prints name and location of all drives Burn::Drive.scan.each do |drive| puts drive.product + " on " + drive.location end
|
Instance methods | |
---|---|
buffer_size | buffer_size |
| |
can_read_cdr? | can_read_cdr? |
| |
can_read_cdrw? | can_read_cdrw? |
| |
can_read_dvdr? | can_read_dvdr? |
| |
can_read_dvdram? | can_read_dvdram? |
| |
can_read_dvdrom? | can_read_dvdrom? |
| |
can_report_c2_errors? | can_report_c2_errors? |
| |
can_write_cdr? | can_write_cdr? |
| |
can_write_cdrw? | can_write_cdrw? |
| |
can_write_dvdr? | can_write_dvdr? |
| |
can_write_dvdram? | can_write_dvdram? |
| |
can_write_simulate? | can_write_simulate? |
| |
cancel! | cancel! |
Cancels an operation on a drive. This will only work when the drive's busy state is Burn::Drive::STATUS_READING or Burn::Drive::STATUS_WRITING.
| |
disc | disc |
| |
disc_erasable? | disc_erasable? |
Checks whether a disc can be erased or not.
| |
disc_status | disc_status |
Retrieves what kind of disc a drive is holding. This method may need to be called more than once to get a proper status from it.
| |
erase_disc! | erase_disc!(fast) |
Erases a disc in the drive. The drive must be grabbed successfully BEFORE calling this method. Always ensure that the drive reports a status of Burn::Disc::STATUS_FULL before calling this function. An erase operation is not cancellable, as control of the operation is passed wholly to the drive and there is no way to interrupt it safely.
| |
grab! | grab!(load) |
Grabs a drive. This must be done before the drive can be used (for reading, writing, etc). It may be neccesary to call this method more than once to grab a drive.
| |
location | location |
| |
packet_block_types | packet_block_types |
| |
product | product |
| |
progress | progress |
| |
raw_block_types | raw_block_types |
| |
read_speed | read_speed |
| |
release! | release!(eject) |
Releases a drive. This should not be done until the drive is no longer busy (see Burn::Drive#status).
| |
sao_block_types | sao_block_types |
| |
set_speed | set_speed(read, write) |
Sets drive read and write speed.
| |
status | status |
Gets the status of the drive. | |
tao_block_types | tao_block_types |
| |
vendor | vendor |
| |
write_speed | write_speed |
|