diff options
author | Helen <helen@puppetlabs.com> | 2016-09-21 16:22:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-21 16:22:37 +0100 |
commit | 69c69e750bdaee7d5eec264650551b149538de92 (patch) | |
tree | bce91bd1788e413432f2d3ad3a984132f672283c /lib/puppet_x | |
parent | e94beb5bd189296ac3dade603c1b45ac7183ec21 (diff) |
Revert "Ensure validate functions use Puppet 4 deprecation"
Diffstat (limited to 'lib/puppet_x')
-rw-r--r-- | lib/puppet_x/puppetlabs/stdlib/deprecation_gen.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/puppet_x/puppetlabs/stdlib/deprecation_gen.rb b/lib/puppet_x/puppetlabs/stdlib/deprecation_gen.rb deleted file mode 100644 index a3d830b..0000000 --- a/lib/puppet_x/puppetlabs/stdlib/deprecation_gen.rb +++ /dev/null @@ -1,21 +0,0 @@ -# Creates a Puppet 4 function for the corresponding puppet 3 validate function, who's name will be passed as an argument, alongside the type for deprecation output purposes. -module PuppetX - module Puppetlabs - module Stdlib - def self.deprecation_gen(funct, type) - Puppet::Functions.create_function(funct, Puppet::Functions::InternalFunction) do - @@funct = funct - @@type = type - dispatch :deprecation_gen do - scope_param - optional_repeated_param 'Any', :args - end - def deprecation_gen(scope, *args) - call_function('deprecation', 'puppet_3_type_check', "This method is deprecated, please use the stdlib validate_legacy function, with #{@@type}. There is further documentation for validate_legacy function in the README.") - scope.send("function_#{@@funct}", args) - end - end - end - end - end -end |