Sha256: 3e221f7f0312b1ba29797b616e1be90de2b284f246a7627b4d36a7ee4cb7ed7b

Contents?: true

Size: 277 Bytes

Versions: 10

Compression:

Stored size: 277 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

10 entries across 10 versions & 1 rubygems

Version Path
kitchen-nodes-0.7.0 test/integration/cookbooks/node-tests/recipes/node2.rb
kitchen-nodes-0.6.6 test/integration/cookbooks/node-tests/recipes/node2.rb
kitchen-nodes-0.6.5 test/integration/cookbooks/node-tests/recipes/node2.rb
kitchen-nodes-0.6.4 test/integration/cookbooks/node-tests/recipes/node2.rb
kitchen-nodes-0.6.4.dev test/integration/cookbooks/node-tests/recipes/node2.rb
kitchen-nodes-0.6.3 test/integration/cookbooks/node-tests/recipes/node2.rb
kitchen-nodes-0.6.2 test/integration/cookbooks/node-tests/recipes/node2.rb
kitchen-nodes-0.6.1 test/integration/cookbooks/node-tests/recipes/node2.rb
kitchen-nodes-0.6.0 test/integration/cookbooks/node-tests/recipes/node2.rb
kitchen-nodes-0.5.0 test/integration/cookbooks/node-tests/recipes/node2.rb