From b3be789b0da179e1011323e95468d3a1f2fd5083 Mon Sep 17 00:00:00 2001 From: Krzysztof Wilczynski Date: Sat, 30 Apr 2011 03:16:12 +0100 Subject: [PATCH] Add number of stub code for future functions. Signed-off-by: Krzysztof Wilczynski --- date.rb | 12 ++++++++++++ delete.rb | 15 +++++++++++++++ grep.rb | 12 ++++++++++++ is_float.rb | 12 ++++++++++++ is_integer.rb | 12 ++++++++++++ is_numeric.rb | 12 ++++++++++++ is_valid_domain_name.rb | 12 ++++++++++++ is_valid_ip_address.rb | 12 ++++++++++++ is_valid_mac_address.rb | 12 ++++++++++++ is_valid_netmask.rb | 12 ++++++++++++ sort.rb | 12 ++++++++++++ 11 files changed, 135 insertions(+) create mode 100644 date.rb create mode 100644 delete.rb create mode 100644 grep.rb create mode 100644 is_float.rb create mode 100644 is_integer.rb create mode 100644 is_numeric.rb create mode 100644 is_valid_domain_name.rb create mode 100644 is_valid_ip_address.rb create mode 100644 is_valid_mac_address.rb create mode 100644 is_valid_netmask.rb create mode 100644 sort.rb diff --git a/date.rb b/date.rb new file mode 100644 index 0000000..ea11265 --- /dev/null +++ b/date.rb @@ -0,0 +1,12 @@ +# +# date.rb +# + +module Puppet::Parser::Functions + newfunction(:date, :type => :rvalue, :doc => <<-EOS + EOS + ) do |arguments| + end +end + +# vim: set ts=2 sw=2 et : diff --git a/delete.rb b/delete.rb new file mode 100644 index 0000000..b8376d1 --- /dev/null +++ b/delete.rb @@ -0,0 +1,15 @@ +# +# delete.rb +# + +# 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(:delete, :type => :rvalue, :doc => <<-EOS + EOS + ) do |arguments| + end +end + +# vim: set ts=2 sw=2 et : diff --git a/grep.rb b/grep.rb new file mode 100644 index 0000000..1663fe7 --- /dev/null +++ b/grep.rb @@ -0,0 +1,12 @@ +# +# grep.rb +# + +module Puppet::Parser::Functions + newfunction(:grep, :type => :rvalue, :doc => <<-EOS + EOS + ) do |arguments| + end +end + +# vim: set ts=2 sw=2 et : diff --git a/is_float.rb b/is_float.rb new file mode 100644 index 0000000..2a5a923 --- /dev/null +++ b/is_float.rb @@ -0,0 +1,12 @@ +# +# is_float.rb +# + +module Puppet::Parser::Functions + newfunction(:is_float, :type => :rvalue, :doc => <<-EOS + EOS + ) do |arguments| + end +end + +# vim: set ts=2 sw=2 et : diff --git a/is_integer.rb b/is_integer.rb new file mode 100644 index 0000000..44337f0 --- /dev/null +++ b/is_integer.rb @@ -0,0 +1,12 @@ +# +# is_integer.rb +# + +module Puppet::Parser::Functions + newfunction(:is_integer, :type => :rvalue, :doc => <<-EOS + EOS + ) do |arguments| + end +end + +# vim: set ts=2 sw=2 et : diff --git a/is_numeric.rb b/is_numeric.rb new file mode 100644 index 0000000..7a64091 --- /dev/null +++ b/is_numeric.rb @@ -0,0 +1,12 @@ +# +# is_numeric.rb +# + +module Puppet::Parser::Functions + newfunction(:is_numeric, :type => :rvalue, :doc => <<-EOS + EOS + ) do |arguments| + end +end + +# vim: set ts=2 sw=2 et : diff --git a/is_valid_domain_name.rb b/is_valid_domain_name.rb new file mode 100644 index 0000000..05d64be --- /dev/null +++ b/is_valid_domain_name.rb @@ -0,0 +1,12 @@ +# +# is_valid_doman_name.rb +# + +module Puppet::Parser::Functions + newfunction(:is_valid_doman_name, :type => :rvalue, :doc => <<-EOS + EOS + ) do |arguments| + end +end + +# vim: set ts=2 sw=2 et : diff --git a/is_valid_ip_address.rb b/is_valid_ip_address.rb new file mode 100644 index 0000000..e6b68a8 --- /dev/null +++ b/is_valid_ip_address.rb @@ -0,0 +1,12 @@ +# +# is_valid_ip_address.rb +# + +module Puppet::Parser::Functions + newfunction(:is_valid_ip_address, :type => :rvalue, :doc => <<-EOS + EOS + ) do |arguments| + end +end + +# vim: set ts=2 sw=2 et : diff --git a/is_valid_mac_address.rb b/is_valid_mac_address.rb new file mode 100644 index 0000000..5e354c9 --- /dev/null +++ b/is_valid_mac_address.rb @@ -0,0 +1,12 @@ +# +# is_valid_mac_address.rb +# + +module Puppet::Parser::Functions + newfunction(:is_valid_mac_address, :type => :rvalue, :doc => <<-EOS + EOS + ) do |arguments| + end +end + +# vim: set ts=2 sw=2 et : diff --git a/is_valid_netmask.rb b/is_valid_netmask.rb new file mode 100644 index 0000000..2aeb374 --- /dev/null +++ b/is_valid_netmask.rb @@ -0,0 +1,12 @@ +# +# is_valid_netmask.rb +# + +module Puppet::Parser::Functions + newfunction(:is_valid_netmask, :type => :rvalue, :doc => <<-EOS + EOS + ) do |arguments| + end +end + +# vim: set ts=2 sw=2 et : diff --git a/sort.rb b/sort.rb new file mode 100644 index 0000000..85e5ba0 --- /dev/null +++ b/sort.rb @@ -0,0 +1,12 @@ +# +# sort.rb +# + +module Puppet::Parser::Functions + newfunction(:sort, :type => :rvalue, :doc => <<-EOS + EOS + ) do |arguments| + end +end + +# vim: set ts=2 sw=2 et :