Skip to content

Instantly share code, notes, and snippets.

@domcleal
Created November 21, 2012 11:50
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 domcleal/4124509 to your computer and use it in GitHub Desktop.
Save domcleal/4124509 to your computer and use it in GitHub Desktop.
feature/provider pluginsync + confine
Puppet.features.add(:json, :libs => ["json"])
require 'json' if Puppet.features.json?
Puppet::Type.type(:footype).provide(:foo) do
confine :feature => :json
# etc
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment