Ruby On Rails Classroom image

Pooja  Negi / Student / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|1 | 2|
Lessons:- Eliminating bundle exec

If you add another executable (such as guard in Section 3.6.2), you should re-run the bundle install command

$ bundle install --binstubs=./bundler stubs

 

binstubs

If you’re not using RVM, you can still avoid typing bundle exec. Bundler allows the creation of the associated binaries as follows:

bundle --binstubs

 

(In fact, this step, with a different target directory, is also used when using RVM.) This command creates all the necessary executables in the bin/ directory of the application, so that we can now run the test suite as follows:

$  bin/rspec spec/  

 

The same goes for rake, etc.:

$  bin/rake db:migrate  

If you add another executable (such as guard in Section 3.6.2), you should re-run the bundle --binstubs command. For the sake of readers who skip this section, the rest of this tutorial will err on the side of caution and explicitly use bundle exec, but of course you should feel free to use the more compact version if your system is properly configured.  

 
 
 
image
Pooja   Negi

Skills    Ruby On Rails

Qualifications :- High School - SSN high school, College/University - HNBGU, College/University - SRHU,
Location :-Ranipokhari,Rishikesh,Uttarakhand,India
Description:- Student
Explore
 

  Students (0)