Is it possible to start package installation from the ruby system call?
I am trying to set gems and run tests for a project under a different path ...
For example, the command:
"cd /some/other/project && bundle install && gem list && rspec spec"
Ideally, I want to just run the tests through the rake file in one project, making sure that the appropriate stones for this project are installed.
It seems that cd is working correctly if I run:
"cd /some/other/project && pwd"
This gives the right way. But if I am going to install install && gem, it seems that it installs gems for the current folder and does not use the Gemfile from another project, and then the rspec specification does not work.
To summarize, what is the best way to run the "rspec spec", for example, for another project in rakefile, also ensure the availability of the corresponding gems?