| Previously a function definition like Puppet::Functions.create_function(:'file::exists', Puppet::Functions::InternalFunction) do (https://github.com/puppetlabs/bolt/blob/2fc9eb44f0b743c8a07d7f165bf5c646aa142076/bolt-modules/file/lib/puppet/functions/file/exists.rb#L4) would have a function name of file::exists. With yard 0.9.20 and puppet strings 2.2.0 the function name renders as :'file::exists'. For example a call like https://github.com/puppetlabs/bolt/blob/2fc9eb44f0b743c8a07d7f165bf5c646aa142076/Rakefile#L62 will result in json like:
"puppet_functions": [ |
{ |
"name": ":'ctrl::do_until'", |
"file": "bolt-modules/ctrl/lib/puppet/functions/ctrl/do_until.rb", |
"line": 4, |
"type": "ruby4x", |
"signatures": [ |
{ |
"signature": ":'ctrl::do_until'(Callable &$block)", |
"docstring": { |
"text": "Repeat the block until it returns a truthy value. Returns the value.", |
"tags": [ |
{ |
"tag_name": "example", |
"text": "ctrl::do_until() || {\n run_task('test', $target, _catch_errors => true).ok?\n}", |
"name": "Run a task until it succeeds" |
}, |
{ |
"tag_name": "param", |
"text": "", |
"types": [ |
"Callable" |
], |
"name": "&block" |
}, |
{ |
"tag_name": "return", |
"text": "", |
"types": [ |
"Any" |
] |
} |
] |
} |
} |
],
|
|