Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
maintainer_email "[email protected]"
license "Apache 2.0"
description "Installs/Configures chruby"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
long_description IO.read(File.join(File.dirname(__FILE__), "README.md"))
version "0.2.1"
depends "ark"
depends "ruby_build"
supports "centos"
supports "ubuntu"

depends "ark"
depends "ruby_build"
supports "centos"
supports "ubuntu"
2 changes: 1 addition & 1 deletion recipes/system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
if flag
ruby_build_ruby ruby do
prefix_path "/opt/rubies/#{ruby}"
end
end
end
end

Expand Down
5 changes: 2 additions & 3 deletions templates/default/chruby.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ source /usr/local/chruby/share/chruby/chruby.sh
RUBIES+=(/opt/chef/embedded)
<% end -%>

<% if node['chruby']['use_rvm'] && ! Dir["~/.rubies/*"].empty? -%>
<% if node['chruby']['use_rvm_rubies'] && ! Dir["~/.rubies/*"].empty? -%>
RUBIES+=($HOME/.rvm/rubies/*)
<% end -%>

<% if node['chruby']['use_rbenv'] && ! Dir["~/.rbenv/versions/*"].empty? -%>
<% if node['chruby']['use_rbenv_rubies'] && ! Dir["~/.rbenv/versions/*"].empty? -%>
RUBIES+=($HOME/.rbenv/rubies/*)
<% end -%>

Expand All @@ -23,4 +23,3 @@ chruby <%= node['chruby']['default'] %>
<% end -%>

<%= node['chruby']['auto_switch'] && "source /usr/local/chruby/share/chruby/auto.sh" %>