summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--date.rb12
-rw-r--r--delete.rb15
-rw-r--r--grep.rb12
-rw-r--r--is_float.rb12
-rw-r--r--is_integer.rb12
-rw-r--r--is_numeric.rb12
-rw-r--r--is_valid_domain_name.rb12
-rw-r--r--is_valid_ip_address.rb12
-rw-r--r--is_valid_mac_address.rb12
-rw-r--r--is_valid_netmask.rb12
-rw-r--r--sort.rb12
11 files changed, 135 insertions, 0 deletions
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 :