Closed Aupajo closed 10 years ago
Possibly one way of addressing this would be to expose chruby_prefix
(as defined in the map_bins
task). I could then run something like:
execute :chruby_prefix, "path/to/shell/script"
Or even if it was available to fetch
, at a pinch:
execute "#{fetch(:chruby_prefix} path/to/shell/script"
Yep, this works nicely! Now I can run:
execute :chruby_prefix, "path/to/shell/script"
Thanks!
Thanks for merging! Any chance of a gem release? :)
Done!
:tada:
Chruby works great, but I'm having an issue when trying to use Ruby in a shell script that Capistrano calls:
It runs in a Capistrano task like this:
The problem is, if I understand correctly, that Capistrano Chruby only seems to call Chruby through
chruby-exec
, which is nice and self-contained, but a problem when you need the Chruby environment there for other purposes.Is there some kind of workaround?