Sha256: 5d0d3f12150efb9a94e0f79c0b5324c7155768fcd265c5f83402493132aeb0b4

Contents?: true

Size: 281 Bytes

Versions: 6

Compression:

Stored size: 281 Bytes

Contents

first_node = search_for_nodes(
  "run_list:*node1* AND platform:#{node['platform']}"
)

ruby_block 'Save first attributes' do
  block do
    parent = File.join(ENV['TEMP'] || '/tmp', 'kitchen')
    IO.write(File.join(parent, 'other_node.json'), first_node[0].to_json)
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
kitchen-nodes-lobatoa-0.10.0 test/integration/cookbooks/node-tests/recipes/node2.rb
kitchen-nodes-scalp42-0.10.0 test/integration/cookbooks/node-tests/recipes/node2.rb
kitchen-nodes-scalp42-0.9.1 test/integration/cookbooks/node-tests/recipes/node2.rb
kitchen-nodes-0.9.1 test/integration/cookbooks/node-tests/recipes/node2.rb
kitchen-nodes-0.9.0 test/integration/cookbooks/node-tests/recipes/node2.rb
kitchen-nodes-0.8.0 test/integration/cookbooks/node-tests/recipes/node2.rb