aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mga-common/lib
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-06-19 19:15:59 +0000
committerNicolas Vigier <boklm@mageia.org>2013-06-19 19:15:59 +0000
commitdf7e540f6ad7385badb91e385e79a583789f3649 (patch)
treed4fe5b854539953b90177d72ca7852e81e555eb2 /modules/mga-common/lib
parent187fb82b596357d0450c75d728bad2004eae6e0e (diff)
downloadpuppet-df7e540f6ad7385badb91e385e79a583789f3649.tar
puppet-df7e540f6ad7385badb91e385e79a583789f3649.tar.gz
puppet-df7e540f6ad7385badb91e385e79a583789f3649.tar.bz2
puppet-df7e540f6ad7385badb91e385e79a583789f3649.tar.xz
puppet-df7e540f6ad7385badb91e385e79a583789f3649.zip
Rename mga-common module to mga_common.
New puppet version doesn't like modules with a - in their name.
Diffstat (limited to 'modules/mga-common/lib')
-rw-r--r--modules/mga-common/lib/puppet/parser/functions/group_members.rb10
-rw-r--r--modules/mga-common/lib/puppet/parser/functions/hash_keys.rb10
-rw-r--r--modules/mga-common/lib/puppet/parser/functions/hash_merge.rb11
-rw-r--r--modules/mga-common/lib/puppet/parser/functions/str_join.rb11
4 files changed, 0 insertions, 42 deletions
diff --git a/modules/mga-common/lib/puppet/parser/functions/group_members.rb b/modules/mga-common/lib/puppet/parser/functions/group_members.rb
deleted file mode 100644
index c5cecbe8..00000000
--- a/modules/mga-common/lib/puppet/parser/functions/group_members.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-require 'etc'
-# group_members($group)
-# -> return a array with the login of the group members
-
-module Puppet::Parser::Functions
- newfunction(:group_members, :type => :rvalue) do |args|
- group = args[0]
- return Etc.getgrnam(group).mem
- end
-end
diff --git a/modules/mga-common/lib/puppet/parser/functions/hash_keys.rb b/modules/mga-common/lib/puppet/parser/functions/hash_keys.rb
deleted file mode 100644
index 3a926bee..00000000
--- a/modules/mga-common/lib/puppet/parser/functions/hash_keys.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-module Puppet::Parser::Functions
- newfunction(:hash_keys, :type => :rvalue) do |args|
- unless args[0].is_a?(Hash)
- Puppet.warning "hash_keys takes one argument, the input hash"
- nil
- else
- args[0].keys
- end
- end
-end
diff --git a/modules/mga-common/lib/puppet/parser/functions/hash_merge.rb b/modules/mga-common/lib/puppet/parser/functions/hash_merge.rb
deleted file mode 100644
index 375bffa4..00000000
--- a/modules/mga-common/lib/puppet/parser/functions/hash_merge.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-module Puppet::Parser::Functions
- newfunction(:hash_merge, :type => :rvalue) do |args|
- unless args[0].is_a?(Hash) and args[1].is_a?(Hash)
- Puppet.warning "hash_merge takes two arguments"
- nil
- else
- print "hash_merge\n"
- args[0].merge(args[1])
- end
- end
-end
diff --git a/modules/mga-common/lib/puppet/parser/functions/str_join.rb b/modules/mga-common/lib/puppet/parser/functions/str_join.rb
deleted file mode 100644
index de97bfb5..00000000
--- a/modules/mga-common/lib/puppet/parser/functions/str_join.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-# str_join($array, $sep)
-# -> return a string created by converting each element of the array to
-# a string, separated by $sep
-
-module Puppet::Parser::Functions
- newfunction(:str_join, :type => :rvalue) do |args|
- array = args[0]
- sep = args[1]
- return array.join(sep)
- end
-end