Updates to current Crystal APIs.

This commit is contained in:
Luka Vandervelden 2020-11-23 17:15:12 +01:00
parent 9db43375ae
commit 8ab6e5af50

View File

@ -34,7 +34,7 @@ class Storage
end end
def store(project, environment, revision, content) def store(project, environment, revision, content)
date = Time.now.to_unix date = Time.utc.to_unix
file_path = "#{@root}/#{project}/#{environment}/#{date}##{revision}.tap" file_path = "#{@root}/#{project}/#{environment}/#{date}##{revision}.tap"
Dir.mkdir_p File.dirname file_path Dir.mkdir_p File.dirname file_path
File.write file_path, content File.write file_path, content