def tail(options)
debug "Tail in progress for #{name}"
file_glob = options.files ? options.files : "#{cartridges.first.name}/logs/*"
remote_cmd = "tail#{options.opts ? ' --opts ' + Base64::encode64(options.opts).chomp : ''} #{file_glob}"
ssh_cmd = "ssh -t #{uuid}@#{host} '#{remote_cmd}'"
begin
debug ssh_cmd
ssh_ruby(host, uuid, remote_cmd)
rescue SocketError => e
msg ="Could not connect: \#{e.message}\nYou can try to run this manually if you have ssh installed:\n\#{ssh_cmd}\n\n"
debug "DEBUG: #{e.message}\n"
raise SocketError, msg
end
end