-
-
Save fredjean/806422 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
dirs = ["output/test/deepdir", "testdir", "another"] | |
task :default => dirs | |
dirs.each do |dir| | |
directory dir | |
end | |
# fjean@Prometheus ~/dev/gist-806422 | |
# master* $ rake -t -v [13:22:23] | |
# (in /Users/fjean/dev/gist-806422) | |
# ** Invoke default (first_time) | |
# ** Invoke output/test/deepdir (first_time) | |
# ** Execute output/test/deepdir | |
# mkdir -p output/test/deepdir | |
# ** Invoke testdir (first_time) | |
# ** Execute testdir | |
# mkdir -p testdir | |
# ** Invoke another (first_time) | |
# ** Execute another | |
# mkdir -p another | |
# ** Execute default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The dirs are only created as needed. A second run yields: