#
# TODO
#
module Puppet
  newtype(:file_fragment) do
    @doc = "TODO"

    newparam(:name, :namevar => true) do
      desc "TODO"
    end

    newparam(:path) do
      desc "TODO"
    end

    newparam(:content) do
      desc "TODO"
    end

    newparam(:order) do
      desc "TODO"

      defaultto '10'

      validate do |val|
        fail "only integers > 0 are allowed and not '#{val}'" if val !~ /^\d+$/
      end

    end
  end
end

#
# TODO
#
module Puppet
  newtype(:file_fragment) do
    @doc = "TODO"

    newparam(:name, :namevar => true) do
      desc "TODO"
    end

    newparam(:target) do
      desc "Deprecated. Use *path* instead."
    end

    newparam(:path) do
      desc "TODO"

      defaultto do
	resource.value(:target)
      end
    end

    newparam(:content) do
      desc "TODO"
    end

    newparam(:order) do
      desc "TODO"

      defaultto '10'

      validate do |val|
        fail "only integers > 0 are allowed and not '#{val}'" if val !~ /^\d+$/
      end

    end
  end
end

Support target parameter as an alias for path
Support target parameter as an alias for path

"path" defaults to "target" for easier transition from
R.I.Pienaar's concat module:
https://github.com/ripienaar/puppet-concat
