diff options
author | Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> | 2011-04-28 03:42:37 +0100 |
---|---|---|
committer | Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> | 2011-04-28 03:42:37 +0100 |
commit | 0bd7550336df4d63bb957b742bb8caaa9f310355 (patch) | |
tree | eb0f611895cb9d823922ee36e7c4d44fa5196151 | |
parent | 79191fc12751405cebaa56e98d56ae159508743f (diff) | |
download | puppet-stdlib-0bd7550336df4d63bb957b742bb8caaa9f310355.tar.gz puppet-stdlib-0bd7550336df4d63bb957b742bb8caaa9f310355.tar.bz2 |
Minor changes.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
-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 |