Calling a remote command via ssh, using Ruby, improved syntax?

Viewed 5677

Currently I'm calling a remote script using the backtick method, it works, but it feels wrong and nasty...

`ssh user@host $(echo "~/bin/command \\\"#{parameter}\\\"")`

Can someone give me a better way of expressing this?

Many thanks.

2 Answers
Related