Skip to content

Commit

Permalink
adding template for scala_home
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Allan committed Aug 6, 2012
1 parent 57bd07c commit a2b32d9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Berksfile.lock
Gemfile.lock
/cookbooks
.vagrant
5 changes: 4 additions & 1 deletion chefignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,7 @@ features/*
# Berkshelf
Berksfile
Berksfile.lock
cookbooks/*
cookbooks/*

# Vagrant
.vagrant
6 changes: 6 additions & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,10 @@
version node[:scala][:version]
append_env_path true
action :install
end

template "/etc/profile.d/scala_home.sh" do
mode 0755
source "scala_home.sh.erb"
variables(:scala_home => node[:scala][:home])
end
1 change: 1 addition & 0 deletions templates/default/scala_home.sh.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export SCALA_HOME=<%= @scala_home %>

0 comments on commit a2b32d9

Please sign in to comment.