Puppet Function: complyadm::display
- Defined in:
- lib/puppet/functions/complyadm/display.rb
- Function type:
- Ruby 4.x API
Overview
Display a string to the user. We use this function for displaying info that we dont need to go into logs. Or to avoid the issues we see with out::message and prompts. Calling function with no param is good way to insert new lines.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/puppet/functions/complyadm/display.rb', line 6 Puppet::Functions.create_function(:'complyadm::display') do # @param data String we want to display dispatch :display do optional_param 'String', :data end def display(data = '') STDOUT.flush puts(data) end end |