Merge pull request #80 from dmitryilyin/master
Add Puppet type name in front of the provider name
This commit is contained in:
commit
5b035398d5
|
@ -25,6 +25,7 @@ class PuppetX::PuppetLabs::Strings::YARD::Handlers::PuppetProviderHandler < YARD
|
|||
i = statement.index { |s| YARD::Parser::Ruby::AstNode === s && s.type == :ident && s.source == 'provide' }
|
||||
provider_name = statement[i+1].jump(:ident).source
|
||||
type_name = statement.jump(:symbol).first.source
|
||||
provider_name = "#{type_name}:#{provider_name}"
|
||||
|
||||
obj = ProviderObject.new(:root, "#{provider_name}_provider")
|
||||
|
||||
|
|
Loading…
Reference in New Issue