Require Puppet >= 3.6.0

Mostly due to breaking changes in how the `puppet module list` Face works.
This commit is contained in:
Charlie Sharpsteen 2014-06-09 21:20:56 -07:00
parent c1217912dd
commit 6e1e9b3e24
3 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,9 @@ A Puppet Face and plugin built on the [YARD Documentation Tool](http://yardoc.or
Installation Installation
------------ ------------
So far, this module has been developed against Puppet 3.6.x.
It will not work with earlier versions.
Currently, just `git clone` directly into the Puppet `modulepath`. Currently, just `git clone` directly into the Puppet `modulepath`.
Ensure the `yard` and `rgen` gems are installed. Ensure the `yard` and `rgen` gems are installed.
If running Ruby 1.8.7, ensure the `backports` gem is installed. If running Ruby 1.8.7, ensure the `backports` gem is installed.

View File

@ -74,6 +74,9 @@ Puppet::Face.define(:yardoc, '0.0.1') do
require 'puppetx/yardoc/yard/plugin' require 'puppetx/yardoc/yard/plugin'
opts = args.pop opts = args.pop
# NOTE: The retrun value of the `module` Face seems to have changed in
# 3.6.x. This part of the code will blow up if run under an earlier
# version of Puppet.
modules = Puppet::Face[:module, :current].list modules = Puppet::Face[:module, :current].list
module_list = modules[:modules_by_path].values.flatten module_list = modules[:modules_by_path].values.flatten

View File

@ -7,6 +7,12 @@
"source": "", "source": "",
"project_page": null, "project_page": null,
"issues_url": null, "issues_url": null,
"requirements": [
{
"name": "puppet",
"version_requirement": ">= 3.6.0"
}
],
"dependencies": [ ] "dependencies": [ ]
} }