Merge pull request #80 from dmitryilyin/master

Add Puppet type name in front of the provider name
This commit is contained in:
Hailee Kenney 2016-04-22 13:54:15 -07:00
commit 5b035398d5
1 changed files with 1 additions and 0 deletions

View File

@ -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")