Updates to current Crystal APIs.
parent
9db43375ae
commit
8ab6e5af50
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue