Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying custom rubies path #14

Merged
merged 1 commit into from
Jan 15, 2014

Conversation

pseudomuto
Copy link
Contributor

@Atalanta and @LordCope for review

Problem

For people using custom ruby paths there is no way to specify a specific directory to look for rubies in.

Solution

Using node['chruby']['user_rubies'] array for custom paths. This attribute is optional and defaults to [].

Usage

Simply add the array to your role attributes.

For example:

default_attributes({
  'chruby' => {
    ,,,
    ,,,
    'user_rubies': [ '/usr/lib/custom_path' ]
  }
})

I've updated the attributes list in the README to indicate this.

Atalanta pushed a commit that referenced this pull request Jan 15, 2014
Allow specifying custom rubies path
@Atalanta Atalanta merged commit 3c44885 into Atalanta:master Jan 15, 2014
@LordCope
Copy link
Contributor

Merged…

At some point I need to do a new release to cookbooks.opscode.com, but thanks very much.

S.
-- 
Stephen Nelson-Smith
@LordCope
http://www.agilesysadmin.net

On 15 January 2014 at 00:10:56, David Muto (notifications@github.com) wrote:

@Atalanta and @LordCope for review

Problem

For people using custom ruby paths there is no way to specify a specific directory to look for rubies in.

Solution

Using node['chruby']['user_rubies'] array for custom paths. This attribute is optional and defaults to [].

Usage

Simply add the array to your role attributes.

For example:

default_attributes({
'chruby' => {
,,,
,,,
'user_rubies': [ '/usr/lib/custom_path' ]
}
})

I've updated the attributes list in the README to indicate this.

You can merge this Pull Request by running

git pull https://github.com/pseudomuto/chef-chruby arbitrary_rubies_dir
Or view, comment on, or merge it at:

  #14

Commit Summary

adding user_rubies attribute for custom paths
File Changes

M README.md (5)
M attributes/default.rb (2)
M templates/default/chruby.sh.erb (4)
Patch Links:

https://github.com/Atalanta/chef-chruby/pull/14.patch
https://github.com/Atalanta/chef-chruby/pull/14.diff

Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants