#840: remove json_file from deploy_info

This commit is contained in:
Anton Martynov 2015-11-11 14:35:27 +03:00
parent 15cf713815
commit 0b3b10e1df

View File

@ -360,7 +360,7 @@ module Devops
deploy_info.delete("use_json_file")
json = nil
dir = DevopsConfig.config[:project_info_dir]
file = deploy_info["json_file"] || "#{@server.project}_#{@server.deploy_env}_#{Time.new.to_i}"
file = deploy_info.delete("json_file") || "#{@server.project}_#{@server.deploy_env}_#{Time.new.to_i}"
path = File.join(dir, file)
if File.exists?(path)
json = File.read(path)