diff options
-rw-r--r-- | count.rb | 1 | ||||
-rw-r--r-- | empty.rb | 2 | ||||
-rw-r--r-- | includes.rb | 1 | ||||
-rw-r--r-- | range.rb | 1 |
4 files changed, 5 insertions, 0 deletions
@@ -3,6 +3,7 @@ # # TODO(Krzysztof Wilczynski): We need to add support for regular expression ... +# TODO(Krzysztof Wilczynski): Support for strings and hashes too .. module Puppet::Parser::Functions newfunction(:count, :type => :rvalue, :doc => <<-EOS @@ -2,6 +2,8 @@ # empty.rb # +# TODO(Krzysztof Wilczynski): Support for hashes would be nice too ... + module Puppet::Parser::Functions newfunction(:empty, :type => :rvalue, :doc => <<-EOS EOS diff --git a/includes.rb b/includes.rb index 6207bf7..a491a76 100644 --- a/includes.rb +++ b/includes.rb @@ -3,6 +3,7 @@ # # TODO(Krzysztof Wilczynski): We need to add support for regular expression ... +# TODO(Krzysztof Wilczynski): Support for strings and hashes too ... module Puppet::Parser::Functions newfunction(:includes, :type => :rvalue, :doc => <<-EOS @@ -7,6 +7,7 @@ module Puppet::Parser::Functions EOS ) do |arguments| + # We support more than one argument but at least one is mandatory ... raise(Puppet::ParseError, "range(): Wrong number of " + "arguments given (#{arguments.size} for 1)") if arguments.size < 1 |