char_device?
Determine if a file is a char 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.char_device?('/dev/null')
true
Tested On
- Ubuntu, Debian, Centos, Fedora, Redhat, OpenSuse, SLES