Advertisement
cburyta

Basic Rakefile - directory issue

Aug 9th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.32 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2. #^syntax detection
  3.  
  4. #
  5. # I had an issue where the directory command would do nothing,
  6. # seems that the "dir1" task must be used before it creates a dir
  7. #
  8.  
  9. # does nothing on it's own
  10. directory "dir1"
  11.  
  12. # this creates triggers the creation of dir1
  13. task :default => ['dir1'] do
  14.   sh "rake -T"
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement