Sha256: a93fa409b9680cccec6c5774601b788e64e36efead8af3beec1e37515f3ec324

Contents?: true

Size: 377 Bytes

Versions: 22

Compression:

Stored size: 377 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 
    end
  end
end 

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
dtk-node-agent-0.7.6 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.7.5 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.7.4.1 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.7.4 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.7.3 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.7.2 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.7.1 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.7.0 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.6.7 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.6.6 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.6.4 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.6.3 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.6.2 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.6.1 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.6.0 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.5.17 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.5.16 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.5.15 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.5.14 puppet_additions/modules/r8/manifests/export_variable.rb
dtk-node-agent-0.5.13 puppet_additions/modules/r8/manifests/export_variable.rb