I had a cookbook with multiple recipes, in one of them having resources like
ruby_block “Create a directry for backup” do
FileUtils.mkdir node[‘backup_path’] unless Dir.exists? node[‘backup_path’]
I need to pass this global variable $s to another chef resources in another
recipe like Path /root/chef-repo/cookbooks/rollback/recipes/xxxx.rb, if is is
possible how can i get that value during at run time or in any other way?
Thanks in advance,