Skip to content

Instantly share code, notes, and snippets.

@Atalanta
Created December 17, 2010 13:13
Show Gist options
  • Select an option

  • Save Atalanta/744906 to your computer and use it in GitHub Desktop.

Select an option

Save Atalanta/744906 to your computer and use it in GitHub Desktop.
chef > recipe
chef:recipe > bash "install Ruby 1.9.2" do
chef:recipe > user "root"
chef:recipe ?> code "rvm install 1.9.2 && rvm use 1.9.2 --default"
chef:recipe ?> not_if File.exists?('/usr/local/rvm/src/ruby-1.9.2-p0')
chef:recipe ?> end
=> bash[install Ruby 1.9.2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment