Is there a way to define the current working directory?
I am running some C binaries from Rails. These binaries use external files in this fashion: ./external_file, that are supposed be run alongside the binary itself, and so the command is supposed to be run from the same folder the binary is. But when running Terrain commands the working folder is the same as the Ruby interpreter working folder (Rails.root in my case). I would be nice to be able to set it.
Is there a way to define the current working directory?
I am running some C binaries from Rails. These binaries use external files in this fashion:
./external_file
, that are supposed be run alongside the binary itself, and so the command is supposed to be run from the same folder the binary is. But when running Terrain commands the working folder is the same as the Ruby interpreter working folder (Rails.root in my case). I would be nice to be able to set it.