Method: Specinfra::Command::Linux::Base::Inventory.get_block_device
- Defined in:
- lib/specinfra/command/linux/base/inventory.rb
permalink .get_block_device ⇒ Object
[View source]
31 32 33 34 |
# File 'lib/specinfra/command/linux/base/inventory.rb', line 31 def get_block_device block_device_dirs = '/sys/block/*/{size,removable,device/{model,rev,state,timeout,vendor},queue/rotational}' "for f in $(ls #{block_device_dirs}); do echo -e \"${f}\t$(cat ${f})\"; done" end |