projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59e45db
)
5989: create directory structure for temp files
author
Nico Cesar <nico@curoverse.com>
Wed, 1 Jul 2015 20:23:33 +0000
(16:23 -0400)
committer
Nico Cesar <nico@curoverse.com>
Wed, 1 Jul 2015 20:23:33 +0000
(16:23 -0400)
refs #5989 bug_1
docker/api/update-gitolite.rb
patch
|
blob
|
history
diff --git
a/docker/api/update-gitolite.rb
b/docker/api/update-gitolite.rb
index 82479319360b8fef8fe0f112931c1fe94d0a1991..a1500e0da1c82953530edba781c787528a4fe09d 100755
(executable)
--- a/
docker/api/update-gitolite.rb
+++ b/
docker/api/update-gitolite.rb
@@
-5,6
+5,7
@@
require 'pp'
require 'arvados'
require 'tempfile'
require 'yaml'
+require 'fileutils'
# This script does the actual gitolite config management on disk.
#
@@
-54,6
+55,7
@@
end
def replace_file(path, contents)
unlink_now = true
dirname, basename = File.split(path)
+ FileUtils.mkpath(dirname)
new_file = Tempfile.new([basename, ".tmp"], dirname)
begin
new_file.write(contents)