Permalink
Browse files

Update RVM installation to be consistent with current installation in…

  • Loading branch information...
1 parent 201fba6 commit 2f1b8ba14524cb736ccbe667ff411d775ec6d7ed @ahhrrr ahhrrr committed Sep 1, 2011
Showing with 8 additions and 9 deletions.
  1. +1 −0 assets/bash_profile
  2. +0 −2 assets/bashrc
  3. +1 −1 assets/rvm_config
  4. +6 −6 packages/rvm.rb
View
@@ -0,0 +1 @@
+[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function'
View
@@ -1,2 +0,0 @@
-[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
-
View
@@ -1,2 +1,2 @@
#!/bin/bash
-bash < <(curl -B http://rvm.beginrescueend.com/install/rvm)
+bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
View
@@ -3,19 +3,19 @@
transfer "assets/rvm_config", "/tmp" do
post :install, %{sudo -u jenkins -H bash /tmp/rvm_config}
end
- requires :bashrc, :curl
+ requires :bash_profile, :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}
+package :bash_profile do
+ description "~/.bash_profile for rvm"
+ transfer "assets/bash_profile", "/tmp" do
+ post :install, %{mv /tmp/bash_profile /var/lib/jenkins/.bash_profile}
end
verify do
- file_contains "/var/lib/jenkins/.bashrc", "rvm"
+ file_contains "/var/lib/jenkins/.bash_profile", "rvm"
end
end

0 comments on commit 2f1b8ba

Please sign in to comment.