I'm using sinatra to query endpoints that response in json requests, and need to validate two things: a 200 response and json schema, IE that it send me a json response and not someother html error (to clarify, sinatra will return whatever get /page is handed by response.body)
because ... one can not trust endpoints to do their homework, im getting passed html errors occasionally and it spits out ugly sinatra garbage, thus the wont to test specifically for json, and that it be in a non-erroroneous format
Hi all, I'm in a bit of a rut with some sinatra code: `get '/:action' do |a| \n response = exec ( "ssh ..." ) \n puts response \n end`
Basically I'm running `exec ( "ssh ..." )` to issue a local ssh command which correctly responds with json in the backend debug, but it won't response to the `curl 127.0.0.1:8080/action` call
hello all, I'm looking at 'net/ssh', attempting to use ssh.exec! to issue a command on a remote server, however it is one that requires :RequestTTY => force, but this isn't an option for Net::SSH (http://www.rubydoc.info/github/net-ssh/net-ssh/Net/SSH); Does anyone have any recommendations for executing "ssh -ttt" commands via ruby?