Skip to content

Instantly share code, notes, and snippets.

@btm
Created January 24, 2013 22:04
Show Gist options
  • Save btm/4628416 to your computer and use it in GitHub Desktop.
Save btm/4628416 to your computer and use it in GitHub Desktop.
$ gem list ohai
*** LOCAL GEMS ***
ohai (6.14.1, 6.14.0, 6.14.0.rc.1, 0.6.12)
$ cat /tmp/test.rb
chef_gem "ohai" do
version ">= 6.16.0"
end
$ sudo chef-apply /tmp/test.rb
Recipe: (chef-recipe cookbook)::(chef-recipe recipe)
* chef_gem[ohai] action install
- install version >= 6.16.0 of package ohai
* chef_gem[ohai] action install (up to date)
$ gem list ohai
*** LOCAL GEMS ***
ohai (6.16.0, 6.14.1, 6.14.0, 6.14.0.rc.1, 0.6.12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment