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