Puppet Function: cd4peadm::version_file_path
- Defined in:
- lib/puppet/functions/cd4peadm/version_file_path.rb
- Function type:
- Ruby 4.x API
Overview
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/puppet/functions/cd4peadm/version_file_path.rb', line 3 Puppet::Functions.create_function(:'cd4peadm::version_file_path') do # The sole purpose of this function is to return this file path to Plans and whatever other Puppet-y things might # want/need it. The file path points to a file on disk that contains the currently installed version of CD4PE. # If there ever comes a better way to manage constants, let's do that instead, but for now this is what we've got. # @returns String the path on disk to the file where we store the currently installed CD4PE version dispatch :version_file_path do return_type 'String' end def version_file_path Shared::Constants.version_file_path end end |