lib/backup/utilities.rb in backup-remote-0.0.14 vs lib/backup/utilities.rb in backup-remote-0.0.15
- old
+ new
@@ -229,9 +229,12 @@
def utility_remote(name, hostname, server_ssh_user, server_ssh_password)
name = name.to_s.strip
raise Error, 'Utility Name Empty' if name.empty?
req = Backup::Remote::Command.new
+ #req.run_ssh_cmd(server_host, server_ssh_user, server_ssh_password, "whoami")
+ #req.run_ssh_cmd(server_host, server_ssh_user, server_ssh_password, "which ruby")
+
cmd = %Q(which '#{ name }' 2>/dev/null)
res = req.run_ssh_cmd(server_host, server_ssh_user, server_ssh_password, cmd)
output = res[:output].chomp
raise Error, <<-EOS if res[:res]==0 || output.empty?