Sha256: e2598cb9cc8f274562e727123969c76fd0245367b602ce577e52a668a92f7539

Contents?: true

Size: 467 Bytes

Versions: 12

Compression:

Stored size: 467 Bytes

Contents

require 'hiera/puppet_function'

# @see lib/puppet/parser/functions/hiera_include.rb for documentation
# TODO: Move docs here when the format has been determined.
#
Puppet::Functions.create_function(:hiera_include, Hiera::PuppetFunction) do
  init_dispatch

  def merge_type
    :array
  end

  def post_lookup(key, value)
    raise Puppet::ParseError, "Could not find data item #{key}" if value.nil?
    call_function('include', value) unless value.empty?
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
puppet-4.2.0 lib/puppet/functions/hiera_include.rb
puppet-4.2.0-x86-mingw32 lib/puppet/functions/hiera_include.rb
puppet-4.2.0-x64-mingw32 lib/puppet/functions/hiera_include.rb
puppet-4.1.0 lib/puppet/functions/hiera_include.rb
puppet-4.1.0-x86-mingw32 lib/puppet/functions/hiera_include.rb
puppet-4.1.0-x64-mingw32 lib/puppet/functions/hiera_include.rb
puppet-4.0.0 lib/puppet/functions/hiera_include.rb
puppet-4.0.0-x86-mingw32 lib/puppet/functions/hiera_include.rb
puppet-4.0.0-x64-mingw32 lib/puppet/functions/hiera_include.rb
puppet-4.0.0.rc1 lib/puppet/functions/hiera_include.rb
puppet-4.0.0.rc1-x86-mingw32 lib/puppet/functions/hiera_include.rb
puppet-4.0.0.rc1-x64-mingw32 lib/puppet/functions/hiera_include.rb