Skip to content

Instantly share code, notes, and snippets.

@raphink
Last active August 29, 2015 14:15
Show Gist options
  • Save raphink/f23036f13e1a615b5e7c to your computer and use it in GitHub Desktop.
Save raphink/f23036f13e1a615b5e7c to your computer and use it in GitHub Desktop.
YOLO
Puppet::Type.type(:package).provide :puppetserver_gem, :parent => :gem do
desc "Puppet Server Ruby Gem support. If a URL is passed via `source`, then
that URL is used as the remote gem repository; if a source is present but is
not a valid URL, it will be interpreted as the path to a local gem file. If
source is not present at all, the gem will be installed from the default gem
repositories."
has_feature :versionable
def self.command(name)
return [which('puppetserver'), 'gem'] if name == :gemcmd
super
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment