summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>2011-04-29 20:10:53 +0100
committerKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>2011-04-29 20:10:53 +0100
commit4c097b0a093b2363904fc3030af48edb9ecf11e9 (patch)
tree9c204f35afb403017a9941237f864bff7471e65f
parent07847be9b99913d3c94899b36da191e609c28a38 (diff)
Reverting name back to bool2num.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
-rw-r--r--bool2num.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/bool2num.rb b/bool2num.rb
index eddd051..b0dbc88 100644
--- a/bool2num.rb
+++ b/bool2num.rb
@@ -3,18 +3,18 @@
#
module Puppet::Parser::Functions
- newfunction(:bool2number, :type => :rvalue, :doc => <<-EOS
+ newfunction(:bool2num, :type => :rvalue, :doc => <<-EOS
EOS
) do |arguments|
- raise(Puppet::ParseError, "bool2number(): Wrong number of arguments " +
+ raise(Puppet::ParseError, "bool2num(): Wrong number of arguments " +
"given (#{arguments.size} for 1)") if arguments.size < 1
value = arguments[0]
klass = value.class
if not [FalseClass, String, TrueClass].include?(klass)
- raise(Puppet::ParseError, 'bool2number(): Requires either an ' +
+ raise(Puppet::ParseError, 'bool2num(): Requires either an ' +
'boolean or string to work with')
end
@@ -30,7 +30,7 @@ module Puppet::Parser::Functions
# This is not likely to happen ...
when /^(undef|undefined)$/ then 0
else
- raise(Puppet::ParseError, 'bool2number(): Unknown type of boolean given')
+ raise(Puppet::ParseError, 'bool2num(): Unknown type of boolean given')
end
else
# We have real boolean values as well ...