block_device?
Determine if a file is a block device type in ruby.
linux manual
Basic Usage
host = Kanrisuru::Remote::Host.new(host: '127.0.1.1', username: 'ubuntu', keys: ['~/.ssh/id_rsa'])
host.block_device?('/dev/vda1')
true
Tested On
- Ubuntu, Debian, Centos, Fedora, Redhat, OpenSuse, SLES