Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between 'bundle' and 'bundle install' rails 3?

I've been working with Rails 3 for some time now and never came across an answer for the difference between running bundle and bundle install to install gems in your Gemfile.

Is there any difference between the two commands?

like image 989
vich Avatar asked Nov 19 '12 19:11

vich


People also ask

Is bundle the same as bundle install?

The commands bundle & bundle install also have the same functionality. bundle uses Thor, and bundle 's default task is install .

What is the difference between bundle install and bundle update?

The most common question I've heard about Bundler is about the difference between bundle install and bundle update . In a nutshell: bundle install handles changes to the Gemfile and bundle update upgrades gems that are already managed by Bundler.

What is bundle install in Rails?

Bundler makes sure that Ruby applications always use the exact gems and versions that you need while keeping a consistent environment and gem dependencies satisfied. This is done by ensuring that the gems you need are present in the development, staging, and production stages.

What is bundle install?

bundle install is a command we use to install the dependencies specified in your Gemfile.


Video Answer


1 Answers

No. install is just the default option for the bundle command. Don't run either in your Gemfile, however, just specify the gem "fubar" there -- bundler knows how to read and process that file.

like image 187
Tom Harrison Avatar answered Oct 18 '22 03:10

Tom Harrison