Created
September 19, 2010 02:19
-
-
Save jtrim/586292 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root_dir = "/path/to/rails/app" | |
dirs = ["app/mailers", "app/models", "lib/tasks", "public/stylesheets", "test/fixtures", "test/functional", "test/integration", "test/unit", "vendor/plugins"] | |
dirs.each do |dir| | |
begin | |
File.open File.join(root_dir, dir, ".gitkeep"), "w" do |file| | |
file.puts "" | |
end | |
rescue | |
puts "nogo: #{dir}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment