Last active
August 29, 2015 14:15
-
-
Save raphink/f23036f13e1a615b5e7c to your computer and use it in GitHub Desktop.
YOLO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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