Skip to content

Commit

Permalink
creates tmp directory if it doesn't already exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanflorence committed Sep 23, 2010
1 parent 275181d commit 7f5a811
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/garuda.rb
Expand Up @@ -16,6 +16,7 @@ def initialize

def clone_repository
@tmp_dir = 'tmp/' + Time.now.strftime("%Y%m%d%H%M%S")
Dir.mkdir 'tmp' unless File.directory?('tmp')
Dir.mkdir(@tmp_dir);
Dir.chdir(@tmp_dir);
# in /tmp/timestamp/
Expand Down

0 comments on commit 7f5a811

Please sign in to comment.