Sha256: ccedf82c8b827e81f738b19e48a40eac5fd7878484c1fb67f7243cd05b49ad38

Contents?: true

Size: 654 Bytes

Versions: 3

Compression:

Stored size: 654 Bytes

Contents

source /usr/local/chruby/share/chruby/chruby.sh

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

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

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

<% if ::File.exists?("/opt/chef/embedded") and node['chruby']['default'] == "embedded" -%>
chruby embedded
<% elsif node['chruby']['default'] -%>
chruby <%= node['chruby']['default'] %>
<% end -%>

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vault-tree-0.3.4 support/cookbooks/chruby/templates/default/chruby.sh.erb
vault-tree-0.3.3 support/cookbooks/chruby/templates/default/chruby.sh.erb
vault-tree-0.1.0 support/cookbooks/chruby/templates/default/chruby.sh.erb