Skip to content

Instantly share code, notes, and snippets.

@jeroenvandijk
Forked from adamhjk/rvm-your-chef.rb
Created March 18, 2010 22:02
Show Gist options
  • Save jeroenvandijk/336958 to your computer and use it in GitHub Desktop.
Save jeroenvandijk/336958 to your computer and use it in GitHub Desktop.
# Check this out, rvm use rbx
ruby_block "rvm use rbx" do
block do
Chef::Mixin::Command.popen4('bash -l -c "rvm use rbx && env"') do |p,i,o,e|
o.each_line do |line|
env_bits = line.split("=")
ENV[env_bits[0]] = env_bits[1]
end
end
end
end
# All future stuff should get the rvm environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment