Giter VIP home page Giter VIP logo

chef-chruby's People

Contributors

atalanta avatar bix27 avatar fnichol avatar gregkare avatar ichilton avatar mylesmegyesi avatar pseudomuto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chef-chruby's Issues

Add a chruby_gem LWRP

It would be great to be able to specify gems to install per Ruby:

For example:

chruby_gem "bundler" do
ruby "1.9.3-p429"
end

Chruby path is chruby-1 not chruby

On Ubuntu 13.04 (not yet tested elsewhere), using current version from community site:

ubuntu@ip-10-229-93-235:~$ ls -ld /usr/local/chruby*
drwxr-xr-x 8 root root 4096 Jun  1 14:50 /usr/local/chruby-1

This breaks because:

-bash: /usr/local/chruby/share/chruby/chruby.sh: No such file or directory

Incorrect permissions on auto.sh

By default, auto.sh doesn't have an execute bit set:

-bash: /usr/local/chruby/share/chruby/auto.sh: Permission denied
$ cat /etc/profile.d/chruby.sh
source /usr/local/chruby/share/chruby/chruby.sh
/usr/local/chruby/share/chruby/auto.sh
RUBIES+=(/opt/chef/embedded)



chruby ["1.9.3-p429"]

Permissions need to change:

$ stat /usr/local/chruby/share/chruby/auto.sh
  File: ‘/usr/local/chruby/share/chruby/auto.sh’
  Size: 910         Blocks: 8          IO Block: 4096   regular file
Device: ca01h/51713d    Inode: 32807       Links: 1
Access: (0664/-rw-rw-r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2013-06-01 19:01:00.385314000 +0000
Modify: 2013-02-28 08:21:32.000000000 +0000
Change: 2013-06-01 19:01:00.269314000 +0000
 Birth: -

Allow chruby to auto-detect /opt/rubies/* and ~/.rubies/*

Since chruby 0.3.1, share/chruby/chruby.sh will initialize RUBIES using /opt/rubies/* and ~/.rubies/*. Perhaps chruby.sh.erb should just append any additional Rubies?

<% if ::File.exists?("/opt/chef/embedded") -%>
RUBIES+=(/opt/chef/embedded)
<% end -%>

Thoughts?

New sessions default to "embedded" ruby instead of .ruby-version

When using something like tmux, when you open a new pane or window, the ruby version is always set to "embedded" ruby, rather than the version in .ruby-version.

I believe this is because the profile.d script does "chruby embedded" after loading auto.sh.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.