I have a code, in that code it contains ruby_block. What are the values generating in that ruby_block, I want use them in out side/in another resource in same recipe file.
Dir.chdir("#{Chef::Config[:file_cache_path]}")
Dir.glob("test-*.msi").each { |file| File.delete(file)}
windows_zipfile "#{Chef::Config[:file_cache_path]}" do
source node['seps_infrastructure']['zip_file']
action :unzip
overwrite true
end
ruby_block 'check_vpn_ip_list' do
block do
node.run_state['msi_file'] = Dir.glob(""test-*.msi"")
node.run_state['ver'] = (node.run_state['msi_file'])[0].split('- ')[3].chomp(".msi")
end
end
puts node.run_state['ver']
puts node.run_state['msi_file']