Am 02.12.2012 03:14, schrieb tamouse mailing lists:
> Seems to be going a long way 'round something pretty simple.
>
> today = Time.now.strftime("%Y%m%d")
> save_path = "/Users/me/github/splat/#{today}"
> system("mkdir -p #{save_path}")

You can create the directories without relying on shell commands:

require 'fileutils'
FileUtils.mkdir_p(save_path)


> # ... later
>
> system("git clone --mirror https://github.com/org/#{repo_name}.git
> #{save_path}/#{repo_name}")
>
> Adjust scope on variables as necessary...


-- 
<https://github.com/stomar/>