atalanta / chef-chruby Goto Github PK
View Code? Open in Web Editor NEWChef Cookbook for the chruby utility
License: Other
Chef Cookbook for the chruby utility
License: Other
@Atalanta Not sure if you're keeping up with active development here. I would like to offer services to help move this cookbook forward!
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
The current release doesn't match the pushed version on Github. This should be fixed.
It would be great (and would make more sense) if this cookbook built rubies with ruby-install (https://github.com/postmodern/ruby-install) rather than ruby-build.
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
Hi there,
sous-chefs would like to adopt the Chruby cookbook.
We already have a pretty good working copy of a resource driven cookbook over here.
If you would like to come help maintain that, we'd also be happy to have you on board!
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: -
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?
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.
The cookbook enables chefdk's Ruby to be used, but this appears as 'embedded', as does Ruby from omnibus chef.
It's be reasonable to make chefdk's Ruby trump omnibus's ruby if it exists.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.