We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
puppet describe
1 parent 6423b76 commit 732ecffCopy full SHA for 732ecff
lib/puppet/resource_api.rb
@@ -35,7 +35,8 @@ def register_type(definition)
35
end
36
37
Puppet::Type.newtype(definition[:name].to_sym) do
38
- @docs = definition[:desc]
+ # The :desc value is already cleaned up by the TypeDefinition validation
39
+ @doc = definition[:desc]
40
@type_definition = type_def
41
42
# Keeps a copy of the provider around. Weird naming to avoid clashes with puppet's own `provider` member
spec/puppet/resource_api_spec.rb
@@ -61,7 +61,7 @@
61
62
it { is_expected.not_to be_nil }
63
it { is_expected.to be_respond_to :instances }
64
- it { expect(type.instance_variable_get(:@docs)).to eq 'the docs' }
+ it { expect(type.instance_variable_get(:@doc)).to eq 'the docs' }
65
66
67
0 commit comments