我有以下布局:
attributes/default.rb
recipes/my_recipe.rb
spec/unit/recipes/my_recipe_spec.rb
在属性文件中,我有很多常见的设置喜欢
default['framework']['folder']['lib'] = '/usr/lib/fwrk'
我想在我的chefspec中使用它们,比如
it 'install the lib if there are changes' do
lib_path = chef_run.node['framework']['folder']['lib']
puts(lib_path)
end
如何从 SoloRunner/ServerRunner 将此文件包含到我的节点中?