Skip to content

Instantly share code, notes, and snippets.

@patcon
Created April 12, 2012 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patcon/2370982 to your computer and use it in GitHub Desktop.
Save patcon/2370982 to your computer and use it in GitHub Desktop.
loading ohai plugin inline from other cookbook
plugin_path = File.expand_path "#{File.dirname(__FILE__)}/../files/default/plugins"
Ohai::Config[:plugin_path] << plugin_path
ohai "reload_pear" do
plugin "pear"
end.run_action(:reload)
log node['languages']['pear']['version']
@patcon
Copy link
Author

patcon commented Apr 12, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment