I have the following layout:
attributes/default.rb
recipes/my_recipe.rb
spec/unit/recipes/my_recipe_spec.rb
In the attributes files I have a lot of common settings likes
default['framework']['folder']['lib'] = '/usr/lib/fwrk'
I would like to use them in my chefspec, like
it 'install the lib if there are changes' do
lib_path = chef_run.node['framework']['folder']['lib']
puts(lib_path)
end
How can I include this file to my node from SoloRunner/ServerRunner?