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