summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>2011-04-28 03:42:37 +0100
committerKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>2011-04-28 03:42:37 +0100
commit0bd7550336df4d63bb957b742bb8caaa9f310355 (patch)
treeeb0f611895cb9d823922ee36e7c4d44fa5196151
parent79191fc12751405cebaa56e98d56ae159508743f (diff)
downloadpuppet-stdlib-0bd7550336df4d63bb957b742bb8caaa9f310355.tar.gz
puppet-stdlib-0bd7550336df4d63bb957b742bb8caaa9f310355.tar.bz2
Minor changes.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
-rw-r--r--count.rb1
-rw-r--r--empty.rb2
-rw-r--r--includes.rb1
-rw-r--r--range.rb1
4 files changed, 5 insertions, 0 deletions
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