From 0bd7550336df4d63bb957b742bb8caaa9f310355 Mon Sep 17 00:00:00 2001 From: Krzysztof Wilczynski Date: Thu, 28 Apr 2011 03:42:37 +0100 Subject: Minor changes. Signed-off-by: Krzysztof Wilczynski --- count.rb | 1 + empty.rb | 2 ++ includes.rb | 1 + range.rb | 1 + 4 files changed, 5 insertions(+) diff --git a/count.rb b/count.rb index c4a5977..9ea4033 100644 --- a/count.rb +++ b/count.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(:count, :type => :rvalue, :doc => <<-EOS diff --git a/empty.rb b/empty.rb index b83ece0..2e75c61 100644 --- a/empty.rb +++ b/empty.rb @@ -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 diff --git a/range.rb b/range.rb index 0c513ef..a6a9f22 100644 --- a/range.rb +++ b/range.rb @@ -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 -- cgit v1.2.3