Bundler
Manage ruby gems
What is Bundler?Bundler provides a consistent environment for Ruby projects by tracking and installing the exact gems and versions that are needed.
Bundler relies on RubyGems, a package management framework for Ruby libraries and applications (the gems).
Installation
Usage
Gemfile
Ruby dependencies of a project are defined in a gemfile
at the root directory.
To install all the dependencies before to start working of a project that contains a Gemfile
, you just need to run:
Besides installing all the dependencies in your local environment, the command also generates a Gemfile.lock
file, which contains the exact version number of each installed gem. The Gemfile.lock
is used during deployement to ensure the gem versions used in production are the same than the ones used in development.
Run a gem executable
To run an executable that comes with a gem in your bundle:
Gemfile Syntax
More info about the gemfile syntax:
Last updated