Permalink
Browse files

Only install rvm once

  • Loading branch information...
1 parent 97f9e1f commit 01370185932cdd0e7358ee70e424954be3a1461d @jferris jferris committed Mar 28, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 packages/rvm.rb
View
@@ -4,13 +4,19 @@
post :install, %{sudo -u jenkins -H bash /tmp/rvm_config}
end
requires :bashrc, :curl
+ verify do
+ has_directory "/var/lib/jenkins/.rvm"
+ end
end
package :bashrc do
description "~/.bashrc for rvm"
transfer "assets/bashrc", "/tmp" do
post :install, %{mv /tmp/bashrc /var/lib/jenkins/.bashrc}
end
+ verify do
+ file_contains "/var/lib/jenkins/.bashrc", "rvm"
+ end
end
package :curl do

0 comments on commit 0137018

Please sign in to comment.