Class: USBUtils::CLI
- Inherits:
-
Thor
- Object
- Thor
- USBUtils::CLI
- Defined in:
- lib/usbutils/cli.rb
Instance Method Summary collapse
Instance Method Details
#devices ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/usbutils/cli.rb', line 9 def devices devices = USBUtils.devices USBUtils.devices.each do |device| if [:detail] pp device else print "serial=#{device[:serial]}\tproduct=#{device[:product]}\tmanufacturer=#{device[:manufacturer]}\tusbdev=#{device[:usbdev]}\n" end end end |