Skip to content

Commit

Permalink
Creates cache folder for rbenv installations to benefit from rbenv/ru…
Browse files Browse the repository at this point in the history
  • Loading branch information
fgrehm committed Nov 14, 2012
1 parent a3a4c73 commit 584cb49
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,9 @@
path => ['/bin', '/usr/bin', '/usr/sbin'],
require => File["rbenv::rbenvrc ${user}"],
}

file { "rbenv::cache-dir ${user}":
ensure => directory,
path => "${root_path}/cache"
}
}
5 changes: 5 additions & 0 deletions spec/defines/rbenv__install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@
should contain_exec("rbenv::shrc #{user}").
with_command("echo 'source /home/#{user}/.rbenvrc' >> /home/#{user}/.profile")
end

it "creates a cache folder" do
should contain_file("rbenv::cache-dir #{user}").
with(:ensure => "directory", :path => "/home/#{user}/.rbenv/cache")
end
end
end

0 comments on commit 584cb49

Please sign in to comment.