

But where you should do that?Īll shells (bash, zsh, etc) keep its settings in home directory. One can redefine this variable such a way, so shell looks up the file somewhere else first (you’re getting it right, you need to prepend new directory to the $PATH, not to append). If the file wasn’t found, it iterates over the next directories until the file is found. When you type “ ruby” command, your shell tries to find the file in the first directory. /usr/bin (where “ ruby” is actually located).So $PATH variable has multiple directories, separated by “ :” (colon): usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin Debugging Example - Save the World with Ruby.The truth about Object-Oriented programming.Arrays of Arrays (two-dimensional arrays in Ruby).Strings, Data Types and Objects in Ruby.Ruby-switch is gone from Ubuntu 14.04 onwards.Fix for selecting the right package name when using versions.Rework the readme, tests, and rake tasks.ruby::dev: A class for configurating ruby development specific things.ruby::gemrc: A class to allow you to configure the global gemrc file.There was a fair amount of under the hood changes to

This work adds the ability to manage the gemrc globally, as well as adds in This release merely updates metadata.json so the module can be uninstalled and This may not be available for all distributions.įor a standard install using the latest Rubygems provided by rubygems-update onĬentOS or Redhat use: class Switch: Installs ruby-switch and uses this to set the installed package as the system default. The rubygems package resource will be versioned from $gems_version Update Rubygems to the version defined in $gems_version. If set to true, the module will ensure that the rubygems package is installedīut will use rubygems-update (same as gem update -system but versionable) to

Set the version of Rubygems to be installed Note: In Debian and Ubuntu where Ruby version is specified by package name, this parameter will effectively install the latest release of the Ruby version specified with the version parameter. Set this to true and the Ruby module will install new releases if they are updated in the repositories, or if a new repository is added with a newer release. This module manages Ruby and Rubygems on Debian and Redhat based systems.
