Sha256: f340e324650af82d90a6770b7cef25cc1ca0bd89c54b61fc293e266f1ef4e899
Contents?: true
Size: 458 Bytes
Versions: 4
Compression:
Stored size: 458 Bytes
Contents
define "r8::export_variable", :content => Puppet::Parser::AST::Leaf::Undef.new({:value => '***'}) do if @name =~ /(^.+)::(.+$)/ component = $1 attribute = $2 if content = (@content == '***' ? scope.lookupvar(@name) : @content) p = Thread.current[:exported_variables] ||= Hash.new (p[component] ||= Hash.new)[attribute] = content File.open('/tmp/dtk_exported_variables', 'w') { |f| f.write(Marshal.dump(p)) } end end end
Version data entries
4 entries across 4 versions & 1 rubygems