I know how to run a shell command in Ruby like:
%x[#{cmd}]
But, how do I specify a directory to run this command?
Is there a simila
I had this same problem and solved it by putting both commands in back ticks and separating with '&&':
`cd \desired\directory && command`