Skip to content

Instantly share code, notes, and snippets.

@kplimack
Created April 21, 2017 16:55
Show Gist options
  • Save kplimack/6da72ac50d56af285609a87e83029300 to your computer and use it in GitHub Desktop.
Save kplimack/6da72ac50d56af285609a87e83029300 to your computer and use it in GitHub Desktop.
basedir = '/opt/foo'
%w( bar bat test ).each do |d|
directory File.join(basedir, d) do
recursive true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment