Created
October 17, 2015 22:54
-
-
Save mangar/77ab3ef55a9862036c80 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| # | |
| require 'fileutils' | |
| puts "Started @ #{Time.now}" | |
| starting_point = "./output" | |
| structure_count = 282344 | |
| FileUtils.remove_dir(starting_point,true) | |
| FileUtils.mkdir_p(starting_point) | |
| 1.upto(structure_count) do |count| | |
| FileUtils.mkdir_p("#{starting_point}/var/www/vhosts/#{count}/config") | |
| FileUtils.mkdir_p("#{starting_point}/var/www/vhosts/#{count}/public") | |
| FileUtils.mkdir_p("#{starting_point}/var/www/vhosts/#{count}/log") | |
| FileUtils.mkdir_p("#{starting_point}/var/www/vhosts/#{count}/tmp") | |
| puts "#{count}" if (count % 1000) == 0 | |
| end | |
| puts "Finished @ #{Time.now}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment