https://tickets.opscode.com/browse/CHEF-1327
This could be worked around in multiple ways, a possible solution is to create a method and call this for each level of the directory. For example:-
def make_dir(dir_path)
directory dir_path do
owner username
group usergroup
mode "0755"
recursive true
action :create
end
end
This saves us from calling the chef directory resource for each level of the directory. This could be called like so:-
make_dir("/tmp/foo")
make_dir("/tmp/foo/bar")
Hopefully this will be fixed in future versions but having the directory resource within a ruby method similar to the above will save lines of code