Another Japan in the World

Jun Aruga's blog, who lived in Japan, Singapore, live in Czech Republic. Mainly about IT and travel.

Ruby Bundler

Bundler is Ruby's gem package management tool.

This time I will write a note about this tool.

Install

$ gem install bundle

Basic

$ bundle --help
$ bundle help [command]
$ bundle --version

Help

See: http://bundler.io/v1.11/man/bundle.1.html

bundle install

It looks better practice to specify the installed path every time.

$ install --path vendor/bundle

If without path, the gems are installed in gem "INSTALLATION DIRECTORY".

$ gem env
...
  - INSTALLATION DIRECTORY: $HOME/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0
...

bundle config

The config file is below path.

cat ~/.bundle/config
Remove all ads