Sha256: c4b08f341df1148df317fdfafb83325b1ee40dd87ec3b58103b5e5ca8b5cd313

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

Stored size: 394 Bytes

Contents

#
# Cookbook Name:: ruby
# Recipe:: path
#
# Copyright 2012, Relevance
#
# All rights reserved - Do Not Redistribute

bash "Add ruby to each user's PATH" do
  code <<-SH
    for f in `ls /home/*/.bashrc`; do
      if ! grep -q "#{node[:ruby][:install_path]}" "$f"; then
        echo -e '\\nexport PATH="#{node[:ruby][:install_path]}/bin:$PATH"\\n' | sudo tee -a "$f"
      fi
    done
  SH
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
elzar-0.2.0 chef/site-cookbooks/ruby/recipes/path.rb