summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/trocla.rb
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-07-27 18:41:27 +0200
committermh <mh@immerda.ch>2011-07-27 18:41:27 +0200
commit16b06320cd3bb3121446717c05b6bc13ae2ff133 (patch)
treee2680d36bc4282d85e97fc294b0942367273dbde /lib/puppet/parser/functions/trocla.rb
init of trocla module
Diffstat (limited to 'lib/puppet/parser/functions/trocla.rb')
-rw-r--r--lib/puppet/parser/functions/trocla.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/trocla.rb b/lib/puppet/parser/functions/trocla.rb
new file mode 100644
index 0000000..9fa06bb
--- /dev/null
+++ b/lib/puppet/parser/functions/trocla.rb
@@ -0,0 +1,7 @@
+module Puppet::Parser::Functions
+ newfunction(:trocla, :type => :rvalue) do |*args|
+ require File.dirname(__FILE__) + '/../../util/trocla_helper'
+
+ Puppet::Util::TroclaHelper.trocla(:password,true,*args)
+ end
+end \ No newline at end of file