What is the difference between the
bundle
&bundler
commands?What is the difference between
bundle
&bundle install
?If there're no differences, why have multiple commands that do the same thing?
相关问题
- gem cleanup shows error: Unable to uninstall bundl
- Why isn't bundle install allowing for the pg g
- Bundle vs Minification,Which one is the best
- Grunt/Bundler wont use specified sass version
- Exclude ts/js file from bundle using webpack
相关文章
-
React Native 0.57.x
large images low quali - How does bundler work (in general)?
- The program 'bundle' is currently not inst
- Gem dependencies with Rails 3 engine fail in initi
- Cannot install pg gem
- How to force rubygems or shell to use a certain ve
- Rails Nginx Passenger Cannot checkout session beca
- bundler: Using a custom path while using system ge
The executables
bundle
&bundler
have the same functionality and therefore can be used interchangeably. You can see in thebundler/exe
directory that thebundler
executable just loads thebundle
executable. It seems to me that thebundle
command is more commonly used than thebundler
command.The commands
bundle
&bundle install
also have the same functionality.bundle
uses Thor, andbundle
's default task isinstall
. Also,bundle i
does the same thing asbundle install
becausebundle
's taski
is mapped (aliased) toinstall
.That's a GREAT question. :-) Ruby tends to follow the Perl programming motto: "There's more than one way to do it." I tend to prefer the Zen of Python principle: "There should be one—and preferably only one—obvious way to do it." I think the latter principle caters to the principle of least astonishment and tends to help keep things simple. Overall however, I still tend to prefer to program in Ruby (especially when building HTTP-based RESTful APIs, for which I use Rack). I think Ruby is simple, elegant, and readable. Perhaps Ruby would be even better if it took on Python's stance regarding this issue.