Skip to content

Instantly share code, notes, and snippets.

@n1koo
Created April 24, 2013 07:27
Show Gist options
  • Save n1koo/5450290 to your computer and use it in GitHub Desktop.
Save n1koo/5450290 to your computer and use it in GitHub Desktop.
%w{pdir1 pdir2}.each do |parentdir|
%w{dir1 dir2 dir3}.each do |subdir|
directory "/tmp/#{parentdir}/#{subdir}" do
mode 00775
owner "root"
group "root"
action :create
recursive true
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment