Sha256: 0188a161e87c344c478b00ffea1a5b40b78d7f80bfab6c24acf447489be9823e

Contents?: true

Size: 264 Bytes

Versions: 10

Compression:

Stored size: 264 Bytes

Contents

node.reverse_merge!(
  variables: {
    lvars: binding.local_variables,
    ivars: instance_variables,
  }
)

file "/tmp/local_variables" do
  content node[:variables][:lvars].to_s
end

file "/tmp/instance_variables" do
  content node[:variables][:ivars].to_s
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
itamae-1.14.1 spec/integration/recipes/variables.rb
itamae-1.14.0 spec/integration/recipes/variables.rb
itamae-1.13.1 spec/integration/recipes/variables.rb
itamae-1.13.0 spec/integration/recipes/variables.rb
itamae-1.12.6 spec/integration/recipes/variables.rb
itamae-1.12.5 spec/integration/recipes/variables.rb
itamae-1.12.4 spec/integration/recipes/variables.rb
itamae-1.12.3 spec/integration/recipes/variables.rb
itamae-1.12.2 spec/integration/recipes/variables.rb
itamae-1.12.1 spec/integration/recipes/variables.rb