#840: remove json_file from deploy_info
This commit is contained in:
parent
15cf713815
commit
0b3b10e1df
@ -360,7 +360,7 @@ module Devops
|
|||||||
deploy_info.delete("use_json_file")
|
deploy_info.delete("use_json_file")
|
||||||
json = nil
|
json = nil
|
||||||
dir = DevopsConfig.config[:project_info_dir]
|
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)
|
path = File.join(dir, file)
|
||||||
if File.exists?(path)
|
if File.exists?(path)
|
||||||
json = File.read(path)
|
json = File.read(path)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user